Please read this FAQ:
http://glassfish.java.net/javaee5/ejb/EJB_FAQ.html#MDBJNDI
Even though it focuses on EJBs, there is a section that describes how to
construct the InitialContext. Note that with GlassFish you do not pass a
Properties object to the InitialContext constructor. Instead use the
no-args constructor and set system properties on the command line for the
host and port.
If you are already using the no-args InitialContext constructor and are
setting the initial host and port using system properties then it seems there
is some other problem.
- Tim
--
[Message sent by forum member 'tjquinn']
View Post: http://forums.java.net/node/846492