|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Is there a time limit in trying to send a message |
« View previous topic :: View next topic » |
Author |
Message
|
Vishy |
Posted: Mon Aug 11, 2003 7:53 am Post subject: Is there a time limit in trying to send a message |
|
|
Novice
Joined: 30 Jul 2003 Posts: 21
|
Hi,
Is there is any parameter for time limit that can be set for a specified time in trying to send a message in the Q. ( say for ex, time limit in trying to connect, time limit in trying to put the message etc) Thanks in advance
Vishy |
|
Back to top |
|
 |
skn |
Posted: Mon Aug 11, 2003 8:09 am Post subject: |
|
|
 Centurion
Joined: 21 May 2003 Posts: 112 Location: Dallas
|
u could set the expiry time on the messages in the q using the MDEXP field in the message descriptor. |
|
Back to top |
|
 |
EddieA |
Posted: Mon Aug 11, 2003 10:03 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Sounds like that's something you should handle in your code.
You try and connect to the Queue Manager. You get an immediate response letting you know if it worked or failed. If it worked, fine. If it failed, you need to check the return code to see if it's an error that 'might' be resolved. Like Queue Manager not available because at 3am every day it's shut down for a backup. You then wait, and try again. After a number of tries you decide it really isn't there and you kill the application.
The same for a PUT to a Queue.
For a GET, you can specify how long MQ waits for a message, if none is available, before returning control back to your application..
Is that what you were after.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
Vishy |
Posted: Mon Aug 11, 2003 11:57 am Post subject: Thanks |
|
|
Novice
Joined: 30 Jul 2003 Posts: 21
|
Thanks for all your input. I wanted to know if there's any generic time limit other than the reason codes. Please excuse my ignorance as I am new to this technology |
|
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
|
|
|
|