Posted: Tue Feb 27, 2018 1:36 pm Post subject: JAVA connecting to MQV8 options
Centurion
Joined: 19 Jul 2011 Posts: 100
Want to clarify some basic questions on JAVA connecting to MQ.
1) what are the different ways core JAVA can connect to MQV8 to publish a message to a topic in MQ Queue?
2) I'm seeing the following jars in MQ installation path?
com.ibm.mq.traceControl.jar
com.ibm.mq.pcf.jar
com.ibm.mqjms.jar
com.ibm.mq.jmqi.jar
com.ibm.mq.jar
com.ibm.mq.headers.jar
com.ibm.mq.allclient.jar
jms.jar
Infocenter says, com.ibm.mq.allclient.jar and rest all are mutually exclusive..does that mean we can use either one?
3) in what scenario we use creating JMS bindings in MQ and sharing it to application teams?
Posted: Tue Feb 27, 2018 3:16 pm Post subject: Re: JAVA connecting to MQV8 options
Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
kishi_25 wrote:
1) what are the different ways core JAVA can connect to MQV8 to publish a message to a topic in MQ Queue?
2) I'm seeing the following jars in MQ installation path?
com.ibm.mq.traceControl.jar
com.ibm.mq.pcf.jar
com.ibm.mqjms.jar
com.ibm.mq.jmqi.jar
com.ibm.mq.jar
com.ibm.mq.headers.jar
com.ibm.mq.allclient.jar
jms.jar
Infocenter says, com.ibm.mq.allclient.jar and rest all are mutually exclusive..does that mean we can use either one?
If you are doing "MQ Classes for Java" (i.e. non-JMS) then you can go with the fat JAR file of com.ibm.mq.allclient.jar which is roughly 8MB.
If you prefer your "MQ Classes for Java" be a little lighter (i.e. 4.5MB) then you can just go with (MQ V8 or higher):
- com.ibm.mq.commonservices.jar
- com.ibm.mq.headers.jar
- com.ibm.mq.jar
- com.ibm.mq.jmqi.jar
- com.ibm.mq.pcf.jar
Note: If you are doing MQ/JMS coding (MQ Classes for JMS) then use com.ibm.mq.allclient.jar JAR file as it will simplify your life.
kishi_25 wrote:
3) in what scenario we use creating JMS bindings in MQ and sharing it to application teams?
It is the preferred way of setting/storing connection information for JMS applications.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum