解决办法:
<mbean code="org.jboss.naming.NamingService" name="jboss:service=Naming">
<attribute name="Port">1099</attribute>
<attribute name="RmiPort">1098</attribute>
</mbean>
<!-- RMI/JRMP invoker -->
<mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker"
name="jboss:service=invoker,type=jrmp">
<attribute name="RMIObjectPort">4444</attribute>
<depends>jboss:service=TransactionManager</depends>
</mbean>
1- 进行端口映射 1099 1098 4444
2- 修改启动方式
nohup ./run.sh
--host 192.168.3.226
-Djava.rmi.server.hostname=1.85.5.2
-Djava.rmi.server.useLocalHostname=true
&
参考:
https://developer.jboss.org/wiki/UsingJBossBehindAFirewall