|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JMS Error Codes |
« View previous topic :: View next topic » |
Author |
Message
|
basva |
Posted: Tue Jun 24, 2003 6:26 am Post subject: JMS Error Codes |
|
|
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 |
|
 |
bower5932 |
Posted: Tue Jun 24, 2003 7:41 am Post subject: |
|
|
 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 |
|
 |
basva |
Posted: Tue Jun 24, 2003 8:13 am Post subject: |
|
|
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 |
|
 |
bower5932 |
Posted: Wed Jun 25, 2003 8:30 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|