Hello,
I am using Glassfish (Sun App Server 9.1) as my JMS Provider. I am trying to retrieve the InitialContext from a Java application installed an running on a desktop. I have seen various flavors of code for doing this including creating a Hashtable with values for Context.PROVIDER_URL and Context.INITIAL_CONTEXT_FACTORY. I have tried 15 different combinations of factories and urls with no success. With each attempt I get a different error, so I am wondering if anyone has a simple working example of how this is done. I have attached my current code. The code fails when I get to the following piece of code:
QueueConnectionFactory
queueConnectionFactory =
(QueueConnectionFactory)context.lookup(
"JMSConnectionFactory");
I have already created JMSConnectionFactory from the Admin Console of Glassfish.
[Message sent by forum member 'errodgers' (errodgers)]
http://forums.java.net/jive/thread.jspa?messageID=283357