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 API Support » JMS Error Codes

Post new topic  Reply to topic
 JMS Error Codes « View previous topic :: View next topic » 
Author Message
basva
PostPosted: Tue Jun 24, 2003 6:26 am    Post subject: JMS Error Codes Reply with quote

Apprentice

Joined: 27 Nov 2002
Posts: 39

Hi,

Are the return codes from JMS same as return codes from normal MQ. For example if the error says MQJMS2059 is it same as normal 2059?

Thanks
Satish
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Jun 24, 2003 7:41 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

The return codes are different. If you want to get the actual MQSeries return code for the JMS return code, you need to catch the linked exception:
Code:

    } catch ( JMSException je2) {
       System.out.println("JMS exception: " + je2);
       Exception le2 = je2.getLinkedException();
       if (le2 != null) {
          System.out.println("Linked exception: " + le2);
       }
    }
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
basva
PostPosted: Tue Jun 24, 2003 8:13 am    Post subject: Reply with quote

Apprentice

Joined: 27 Nov 2002
Posts: 39

What I get in the linked exception is same as the old MQ codes? If not is there any document which lists all the codes for JMS?

Thanks
Satish
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Jun 25, 2003 8:30 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

The WMQ Using Java manual lists the MQJMS errors in an appendix. The linked exception will give you the regular MQ error code.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » JMS Error Codes
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.