I am trying to send messages from a plain java client to a JMS Queue using the Weblogic Workshop 8.1.
If I change the Connection Factory to weblogic.jms.ConnectionFactory or weblogic.jws.jms.QueueConnectionFactory, I can get a value for factory in the lookup. Since they are defaults. I can also get a (connection factory) if I add java:comp/env/jms/QueueConnectionFactory to Admin Console
Yet the code still can't find the queue when these connection factories are used.
My queue in the Admin console is under CgJMSServer/Destinations, with name: of Synch Queue JNDI NAme:SynchQueue
( I tried different parameters for looking up queue.)
Can someone recommend which connection factory to use and how I might configure it if necessary and how the queue can be associated with the connection factory in the code and in the Admin Console.
I have seen examples to write to a queue from another bean using ebjgen tags, but I don't know how to do the equivalent in a plain java client. It's also not clear how this config is accomplished in the samples queue example, which uses a simple java client.
Any assistance would be greatly apprecieated. Thank you!!
My code fragment is as follows: //Function getinitialContext defined below Context ic = getInitialContext("t3://localhost:7001", "weblogic", "weblogic");