|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Urgent : Program terminated with a reason code of 2003 |
« View previous topic :: View next topic » |
Author |
Message
|
wildtiger |
Posted: Wed May 08, 2002 11:57 am Post subject: |
|
|
 Acolyte
Joined: 21 Apr 2002 Posts: 55 Location: Canada
|
My MQ-Java program is tring to send 2000 messages to a queue with syncpoint. Each message is 100,000 bytes long. After having send 163 messages, an exception is thrown out. The reason code is 2003 (MQRC_BACKED_OUT). Does it mean that no resource avaiable to keep the transaction? I've also noticed that there is a parameter on defining queue manager, which is MAXUMSGS (The maximum number of uncommitted messages within a syncpoint). But I cannot find a way to get the value of MAXUMSGS using MQ-Java classes. Can anyone tell me how to deal with it?
The purpose of that is I'm going to calculate the number of messages before sending them. If the number cannot be accepted in one transaction, the program should advise user.
Thanks in advance.
|
|
Back to top |
|
 |
StefanSievert |
Posted: Wed May 08, 2002 12:25 pm Post subject: |
|
|
 Partisan
Joined: 28 Oct 2001 Posts: 333 Location: San Francisco
|
Wildtiger,
163 messages is not that much and an odd value to be set as MAXUMSGS. Have you checked that you have enough log space available? Are you consistently checking return codes from MQPUT calls?
To answer your question, you can use the MQINQ call to inquire about the queue manager attributes, if you wish to.
Check out the manual MQSeries using Java, Chapter 9, Class description for MQManagedObject, inquire method.
Also, check out http://www.mqseries.net/phpBB/viewtopic.php?topic=2722&forum=12 where something similar has been discussed before.
Hope that helps,
Stefan
_________________ Stefan Sievert
IBM Certified * WebSphere MQ |
|
Back to top |
|
 |
wildtiger |
Posted: Wed May 08, 2002 12:57 pm Post subject: |
|
|
 Acolyte
Joined: 21 Apr 2002 Posts: 55 Location: Canada
|
Hi Stefan,
Thank you very much for your information.
By the way, how can make MQINQ call in MQ-Java program?
Thanks again,
|
|
Back to top |
|
 |
StefanSievert |
Posted: Wed May 08, 2002 1:58 pm Post subject: |
|
|
 Partisan
Joined: 28 Oct 2001 Posts: 333 Location: San Francisco
|
Quote: |
On 2002-05-08 13:57, wildtiger wrote:
By the way, how can make MQINQ call in MQ-Java program?
|
From my previous reply: Check out the manual MQSeries using Java, Chapter 9, Class description for MQManagedObject, inquire method. The manual Programmable Systems Management contains a list of all the selectors that are available to use with the inquire method.
Cheers,
Stefan
_________________ Stefan Sievert
IBM Certified * WebSphere MQ |
|
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
|
|
|
|