我在Eclipse下关闭运行的JBoss实例时遇到了问题,因为我更改了JBoss的JNDI端口.当然我可以从控制台视图关闭它,但不能使用停止按钮(它仍然在默认的1099端口搜索JNDI端口).我期待着任何解决方案.谢谢!
默认端口:1098,1099已更改端口:11098,11099
我在jbosspath/server/default/conf/jboss-service.xml中更改了以下部分:
<!-- ==================================================================== -->
<!-- JNDI -->
<!-- ==================================================================== -->
<mbean code="org.jboss.naming.NamingService"
name="jboss:service=Naming"
xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">
<!-- The call by value mode. true if all lookups are unmarshalled using
the caller's TCL, false if in VM lookups return the value by reference.
-->
<attribute name="CallByValue">false</attribute>
<!-- The listening port for the bootstrap JNP service. Set this to -1
to run the NamingService without the JNP invoker listening port.
-->
<attribute …Run Code Online (Sandbox Code Playgroud)