-
1. Re: Getting the Host Name and Port No. in the application
genman Dec 29, 2004 6:06 PM (in response to kiran12345)
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 . -
2. Re: Getting the Host Name and Port No. in the application
kiran12345 Jan 11, 2005 11:28 PM (in response to kiran12345)Hai,
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,
Kiran. -
3. Re: Getting the Host Name and Port No. in the application
anil.saldhana Jan 12, 2005 9:59 AM (in response to kiran12345)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.