I am just wondering whether is there any way to retrieve the HOST name, JNP or RMI port where JBoss is running and this app is deployed in the same JBoss.
This kind of information can be found in various MBeans. For example, the jboss.system:type=ServerInfo MBeans has a hostName property, and the jboss:service=Naming MBean has a port property. You can use the jmx-console or twiddle to easily scan the mbeans to see which ones contain the information you want, and then have your code query the appropriate mbean properties.
I guess I do not understand your question. What tool are you using to access the MBeans? JMX Console? Twiddle? JMX Console, for example, shows the attribute name and value.
I was writing a JMX client to get these information from the JBoss and was not able to find an proper method in MBean API to get the attribute's value.