Search code examples
javajmsjndiibm-mq

Standalone application for JMS/MQ messaging?


I want to create a Java standalone application for connecting via JMS to an MQ Queue Manager (not to be confused with a client). I want to create the JNDI resources independently and put everything in a JAR a run it to make some tests.

Is there any example that I can take to build this?


Solution

  • Little old but explains the steps: IBM WebSphere Developer Technical Journal: Developing a standalone Java application for WebSphere MQ http://www.ibm.com/developerworks/websphere/techjournal/0502_woolf/0502_woolf.html

    Then to access the JNDI you need the thin client http://pic.dhe.ibm.com/infocenter/wasinfo/v8r0/index.jsp?topic=%2Fcom.ibm.websphere.express.doc%2Finfo%2Fexp%2Fae%2Ftcli_developthin.html

    There is also a sample in the client download JmsJndiProducer.java