Hi:
I use Jboss 4.2.1 GA,for multiple instance to run .
I change every conf/jboss-service.xml port value by follow wizard:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfiguringTheJNDINamingServiceInConfjbossSystem.xml
1099
In Java code ,I want to get current Jboss runing instance port to initialize the
context environment.
how to get this NamingSevice port value?
thanks.
<mbean code="org.jboss.naming.NamingService" name="jboss:service=Naming"> <attribute name="Port">1099</attribute>