I need to write a stand-alone application that could put messages in a JMS queue from Weblogic Server. Is it possible? If yes, how can I locate the queue?
Hi. I'm not sure what you mean by "stand-alone", but WebLogic comes with the JMS libraries required for developing and deploying JMS client applications. These client applications are run on computers that have network connectivity with the computer running the BEA WebLogic Server software.
What you need to do is to first create your queue using the WebLogic administration console. In your JMS application, you then get hold of a corresponding "Queue" object by performing a JNDI lookup:
Context ctx; ... Queue myQueue = (Queue)ctx.lookup("myqueue"); ...You will find examples of that in the Weblogic documentation.
Dig Deeper on Topics Archive
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.