Is there any way for an MDB to get the IP address of the app server hosting it? The EAR of this MDB has both ejb and web modules. The only solution I can think of is for the MDB to make an http request to a servlet and having the servlet return the ip.

If anyone knows of a better way to do it, I'd greatly appreciate it

Thank you,