ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ88.jar versus 5.3 client jar files

Post new topic  Reply to topic
 MQ88.jar versus 5.3 client jar files « View previous topic :: View next topic » 
Author Message
tdwells
PostPosted: Tue Mar 01, 2005 10:41 am    Post subject: MQ88.jar versus 5.3 client jar files Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Tue Mar 01, 2005 11:17 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
tdwells
PostPosted: Tue Mar 01, 2005 1:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 01, 2005 2:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ88.jar versus 5.3 client jar files
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.