|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ88.jar versus 5.3 client jar files |
« View previous topic :: View next topic » |
Author |
Message
|
tdwells |
Posted: Tue Mar 01, 2005 10:41 am Post subject: MQ88.jar versus 5.3 client jar files |
|
|
Apprentice
Joined: 30 Oct 2002 Posts: 42
|
We have a java application that sets MQEnvironment.hostname, MQEnvironment.channel and MQEnvironment.port. We have been using the MQ88.jar file for our classes for MQClient. We recently moved away from the MA88 and began using the jar files in the 5.3 Java\lib directory.
Oddly enough, however, the code seems to fail at the point that we try to set the MQEnvironment. We get no exceptions. We even tried setting the enableTracing method of the MQEnvironment class, but it fails as well.
We have also ensured that all necessary 5.3 jar files are in our classpath.
If we change our classpath to point back to the MA88.jar, the app works.
The app runs in a Windows 2000 mqclient 5.3.9 (fixpack environment.
Has anyone had this experience? _________________ IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Mar 01, 2005 11:17 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I just took the amqsbcg.java sample from:
http://www.developer.ibm.com/tech/sampmq.html
and made the following changes:
Code: |
/*****************************/
/* Create a queue manager */
/*****************************/
MQEnvironment.hostname = "bowertp"; /* new */
MQEnvironment.channel = "SYSTEM.DEF.SVRCONN"; /* new */
MQEnvironment.port = 1415; /* new */
qMgr = new MQQueueManager(myQmgr); |
and it worked for me. Are you using the 5.3 jar files against a 5.3 qmgr? |
|
Back to top |
|
 |
tdwells |
Posted: Tue Mar 01, 2005 1:06 pm Post subject: |
|
|
Apprentice
Joined: 30 Oct 2002 Posts: 42
|
My code is very similar:
MQEnvironment.hostname = sc.hostname;
MQEnvironment.channel = sc.channel;
MQEnvironment.port = Integer.valueOf(sc.port).intValue();
The qm's are 5.3.
This is very bizarre. _________________ IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Mar 01, 2005 2:31 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Can you publish the exception you are getting ? If not caught you should at least have something in the log or on the console...
I suspect it might be a mix between the jars or some jars missing on your classpath. If you set up your classpath in such a way that none of the fixpack stuff is in it and only the jars in <mqinstall>/java/lib it might clear up?
 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|