Author |
Message
|
PeterPotkay |
Posted: Wed Dec 09, 2015 5:04 am Post subject: There are 3 MQ Java/JMS packages - which one is right when? |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Perhaps this question is simple to answer for a Java/JMS expert (which I am not), but is there a decision tree or a pros/cons as to which of the following packages should be used in which situations? Clearly there is overlap in at least some of the functionality between these 3 packages, and I have to assume some features are present in one package and not the other(s).
8.0.0.4-WS-MQ-Install-Java-All.jar
8.0.0.4-WS-MQC-Redist-Java.zip
8.0.0.4-WS-MQ-Java-InstallRA.zip
I’m looking to be able to answer someone when they say “I need to MQ via JMS, I don’t want to install the full MQ Client, what package should I download?” I see 3 choices now, and do not feel confident in suggesting the right one, or even asking the correct follow up questions to help decide which is the right one.
Does one of the three include everything the other 2 do, and so that is the ‘safe’ or ‘easy’ answer, at the risk of installing extraneous jars in some cases?
Another question:
I reviewed this again about the 8.0.0.4-WS-MQ-Install-Java-All in the following technote:
http://www-01.ibm.com/support/docview.wss?uid=swg21683398
I did not see any wording around being able to redistribute the jars from this package. I assume that on every machine you would want to use the jars from 8.0.0.4-WS-MQ-Install-Java-All, you would need to run the self extracting JAR again and accept the license again. Is that true for 8.0.0.4-WS-MQ-Install-Java-All? If yes, I know the suggestion would be to use 8.0.0.4-WS-MQC-Redist-Java.zip if you want to be free to copy jar files around, but then I am back to my question of what is the functionality difference between 8.0.0.4-WS-MQC-Redist-Java.zip and 8.0.0.4-WS-MQ-Install-Java-All.jar (and 8.0.0.4-WS-MQ-Java-InstallRA.zip). _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Dec 09, 2015 5:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Well let's have a quick look at the names and content.
Obviously "8.0.0.4-WS-MQ-Java-InstallRA.zip" is the resource adapter (used to define a J2EE JMS connection to a J2EE server)
"8.0.0.4-WS-MQC-Redist-Java.zip" I would indeed expect to be the redistributable and the content of it to be something like:
com.ibm.mq.allclient.jar
fscontext.jar
jms.jar
providerutil.jar
Now the Install Java all I would expect to produce the tree I see in <MQInstall>\java\lib
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Dec 09, 2015 10:52 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Thanks FJ, but my original questions still stand.
If we all lined up by Java knowledge, I would be to Vitor's immediate left, and you would be waaaaayyyy at the other end of the line  _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Dec 09, 2015 11:20 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I would expect that the InstallJava package would require the rest of the MQclient, and the redist not to. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
tczielke |
Posted: Wed Dec 09, 2015 1:59 pm Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
At v8, MQ now supports relocatable JAR files -> http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q030590_.htm?lang=en
They recommend two jars:
com.ibm.mq.allclient.jar
com.ibm.mq.traceControl.jar
However, you probably only need the second one for diagnostic purposes.
So you could within an enterprise, just send them those 2 jars for a Java/JMS MQ Client. When I looked at redistributable java package, it was mainly a repackaging of the allclient jar. _________________ Working with MQ since 2010. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Dec 10, 2015 6:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
tczielke wrote: |
At v8, MQ now supports relocatable JAR files -> http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q030590_.htm?lang=en
They recommend two jars:
com.ibm.mq.allclient.jar
com.ibm.mq.traceControl.jar
However, you probably only need the second one for diagnostic purposes.
So you could within an enterprise, just send them those 2 jars for a Java/JMS MQ Client. When I looked at redistributable java package, it was mainly a repackaging of the allclient jar. |
If you are dealing with stand alone JMS programs, my experience tells me you'll need as well jms.jar. There used to be a jta.jar but I guess that the part that was needed has been folded into the jms.jar (there are a few transaction references there including transaction exceptions).
You'd obviously also want to add fscontext.jar for file based jndi... _________________ MQ & Broker admin |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Dec 10, 2015 7:27 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
I have a PMR open and asked for a flow chart, decision matrix and/or pros/cons comparing these 3 packages and providing some guidance as to which one is best used in which situation.
To be sure there must be significant overlap between these 3. But there must also be a reason IBM provides all 3. I need to explained to me in terms a Java noob can understand. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Dec 10, 2015 12:04 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
OK so looking at the difference with MQ 7.5 <install>\java\lib vs v8 and I am excluding the OSGi and other stuff (sub directories).
- Present in 7.5 but not in 8
- CL3Export.jar
- CL3Nonexport.jar
- connector.jar
- dbhcore.jar
- jndi.jar
- jta.jar
- ldap.jar
- rmm.jar
- Present in v 8 but not in v 7.5
- com.ibm.mq.allclient.jar
- com.ibm.mq.traceControl.jar
This clearly shows that there has been some consolidation going on in the jar files. I suspect the jndi, jta, and ldap have somewhat found their way into the allclient.jar...
The discrepancy between the contents of the wmq.jmsra.rar file between 7.5 and 8 is even more evident. At a glance the 7.5 rar file seems to have double the number of jars compared to the v8 rar file. _________________ MQ & Broker admin |
|
Back to top |
|
 |
|