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 » com.ibm.mq.MQException in MQ7?

Post new topic  Reply to topic
 com.ibm.mq.MQException in MQ7? « View previous topic :: View next topic » 
Author Message
zvirbulis
PostPosted: Thu Jul 16, 2009 8:06 am    Post subject: com.ibm.mq.MQException in MQ7? Reply with quote

Novice

Joined: 16 Jul 2009
Posts: 14

MQ 5/6 had a class com.ibm.mq.MQException in the com.ibm.mq.jar file

Has this class been removed in MQ7? Since the MQ7 com.ibm.mq.jar file does not have that class.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jul 16, 2009 8:30 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

It's not been removed.

It's just been moved.
Back to top
View user's profile Send private message
zvirbulis
PostPosted: Thu Jul 16, 2009 9:44 pm    Post subject: Reply with quote

Novice

Joined: 16 Jul 2009
Posts: 14

thanks - you are indeed correct - it is now in com.ibm.mq.jmqi.jar
Back to top
View user's profile Send private message
brianb
PostPosted: Sun Oct 24, 2010 1:13 pm    Post subject: MQv7 java Reply with quote

Voyager

Joined: 12 May 2010
Posts: 85

Hi

As a non programmer what are the implications of this?

What I have found so far is that some programs no longer work after upgrade to MQv7 from MQv6.

tcserver is one that no longer works due to MQException in com.ibm.mq.jar being moved to com.ibm.mq.jmqi.jar...

I have also had to upgrade things like jt400

I have even had to leave the MQv6 libs in place and point some programs to the old libs to keep them working..

Do we basically need to recompile all our programs that used the com.ibm.mq.jar and include com.ibm.mq.jmqi.jar

Thanks
Back to top
View user's profile Send private message
brianb
PostPosted: Sun Oct 24, 2010 5:42 pm    Post subject: com.ibm.mq.MQException in MQ7 Reply with quote

Voyager

Joined: 12 May 2010
Posts: 85

Just had to post the question and then figure it out

seems I just needed to copy the .jar file to the TCServer share directory.

Which got me almost there now I get

java.lang.NoClassDefFoundError: com.ibm.mq.MQQueueManager

did a grep on com.ibm.mq.MQQueueManager and it is in the .jar in the shared directory...

Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 25, 2010 5:59 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

you should not mix and match jars across releases.
Either use only MQV7 jars on the classpath or use only MQV6 jars on the classpath.

And yes you should review your code when moving from MQV6 to MQV7 as some classes have been deprecated and replaced by others... and some work a little bit differently...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
brianb
PostPosted: Mon Oct 25, 2010 1:02 pm    Post subject: com.ibm.mq.MQException in MQ7 Reply with quote

Voyager

Joined: 12 May 2010
Posts: 85

Hi

thanks for that

I agree that mixing versions is not good however what I have done is created a folder with the MQ V6 Java and pointed a single OLD application to it. This should not impact any other apps or any new apps


Sometimes finding out how old in house apps are put together is a large task and work arounds need to be done or we all would still be on MQ5.1
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » com.ibm.mq.MQException in MQ7?
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.