|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
GET WAIT unlimited within Client appli - what are the risks? |
« View previous topic :: View next topic » |
Author |
Message
|
KAKEZ |
Posted: Fri Jul 18, 2003 1:13 am Post subject: GET WAIT unlimited within Client appli - what are the risks? |
|
|
Centurion
Joined: 10 Oct 2002 Posts: 117
|
Hi,
I have heard that it is not recommended to use MQGET wait unlimited within a client application in case where the communication between the server and the client is broken.
- what are the pbs arisen then?
- and what is recommended instead?
thanks for help.
Jack |
|
Back to top |
|
 |
mqonnet |
Posted: Fri Jul 18, 2003 2:21 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
MQGET with unlimited wait is NOT suggested only in the case where you are doing this within a UOW. But if you are NOT, then there is no problem with it.
In the event that there is a connection broken, you just get a 2009 from the get, thats it.
But if you know how things are going to be, design your get app with a limited timeout rather than unlimited. The alternative would be to wiat for a specified time limt and loop until you get a message, sort of polling. Not sure if this would help your scenario, but....
Cheers
Kumar |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Jul 18, 2003 7:16 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Either way code the Fail If Quiesing option on the Get, regardless of how long you do end up waiting. This way if the admin wants to stop the QM, it will force your Get to end with a RC saying the QM is coming down. Otherwise, your process could hold up the QM coming down cleanly. _________________ Peter Potkay
Keep Calm and MQ On |
|
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
|
|
|
|