Which port? If you're talking about a .war file, then take a look at the MBean Catalina:type=Server ... For host jboss.system:type=ServerInfo .
Thank you very much for your reply. I have seen ServerInfo. I'm able to get
host name using org.jboss.system.server.ServerInfo class by
(new ServerInfo().getHostName()). But there are no methods in this class to get the port number.
Reply me what I have to do to get the port number.
Thanks and Regards,
I am not sure how we can get the port numbers in the traditional sense (just the way u claim u r getting from Weblogic). JBoss has the concept of invokers that listen on ports, which direct requests to the MBeanServer. Look for the invoker that reads "RMIAdaptor" in the jmx console. That will tell you the port number that is relevant for u.