简体   繁体   English

如何打开Jboss端口4447?

[英]How can I open Jboss port 4447?

I have a Jboss 6.1 server and I'd like to use remote EJB connection from a remote client. 我有一个Jboss 6.1服务器,我想使用来自远程客户端的远程EJB连接。

But JBoss port 4447 is always closed, connection is refused. 但是JBoss端口4447始终处于关闭状态,拒绝连接。

How can I open this port? 如何打开此端口?

I assumed you are using Remote protocol to get JNDI resources in server from a Java program 我假设您正在使用远程协议从Java程序获取服务器中的JNDI资源

By default, Remote port is not closed in JBOSS servers. 默认情况下,JBOSS服务器中不关闭远程端口。

To access Remote protocol , you need to create an application user and use that credentials while connecting. 要访问远程协议,您需要创建一个应用程序用户并在连接时使用该凭据。

Find the add-user.bat (for windows) / add-user.sh (for linux) and create a application Realm user. 找到add-user.bat (for windows) / add-user.sh (for linux)并创建应用程序Realm用户。

After that use that user name and password in your program. 之后,在程序中使用该用户名和密码。

For reference : check this documentation 供参考: 检查此文档

But here are other things to ensure: 但是,还需要确保以下几点:

Check your log for the below line: 检查日志中的以下行:

[Server:ServiceNode-1] 19:40:39,323 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on fedora18/localhost:4447

And ensure that no other programs uses the port 4447. (using netstat or something like that) 并确保没有其他程序使用端口4447。(使用netstat或类似的东西)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM