users@glassfish.java.net

Re: EJB determine hostname/port of glassfish server

From: <glassfish_at_javadesktop.org>
Date: Thu, 07 Oct 2010 14:37:57 PDT

You can access all of the info using AMX beans. But, frankly, it's a bit of a dark art navigating that maze of twisty passages, all alike. (And, of course, this would be GF specific.)

It would probably be easier to harvest that info in a web app and pass along that info either in the arguments, or have a webapp make a one time call at startup "informing" you EJB tier of that info, and it can sock it away in a singleton for later reference.

That's the expeditious path, IMHO.
[Message sent by forum member 'whartung']

http://forums.java.net/jive/thread.jspa?messageID=484582