Author |
Message
|
super |
Posted: Sun Aug 01, 2004 11:08 pm Post subject: Connection rollback |
|
|
Newbie
Joined: 25 Jul 2004 Posts: 5
|
Hi,
If the MQ connection rollback, the message will be put in the beginning of the queue again.
Is there any parameter can be set in the MQ server such that if a connection rollback for more than, say 5 times, that message will be put in another queues?
Thanks!
Paul |
|
Back to top |
|
 |
JasonE |
Posted: Mon Aug 02, 2004 1:15 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
Look at the MD BackoutCount field, however handling of this field is up to you on distributed MQ at least.
WBIMB for example does take notice of this field for example, and z/OS might (not sure). |
|
Back to top |
|
 |
zpat |
Posted: Mon Aug 02, 2004 2:24 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Yes, just set the backout count threshold and the backout re-queue queue name in the QUEUE definition.
That way the application can ignore the backout processing and leave it to the queue manager to send it to another queue (works on z/OS).
Checking backout count in the application is OK but it is possible to get a backout before you have a chance to examine this field and therefore get a retry loop (it happened to me!) - so the queue backout definitions can act as a second line of defence if nothing else.
Last edited by zpat on Mon Aug 02, 2004 4:41 am; edited 2 times in total |
|
Back to top |
|
 |
JasonE |
Posted: Mon Aug 02, 2004 2:26 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
I thought on distributed (non-z.os) platforms the qmgr ignores these values |
|
Back to top |
|
 |
zpat |
Posted: Mon Aug 02, 2004 2:28 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Maybe, I used it on z/OS and tend to assume the mainframe lags behind the other platforms in terms of features - but you are best placed to know the answer!
Last edited by zpat on Mon Aug 02, 2004 4:42 am; edited 1 time in total |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Aug 02, 2004 4:05 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
I have never known the QM, on any platform, to automatically move your message to the BackoutRequeueQName. It is always up to the app to inquire on the value and do its own separate put.
From the APR manual:
Quote: |
BackoutRequeueQName (MQCHAR48)
Excessive backout requeue queue name.
Local Model Alias Remote Cluster
Yes Yes No No No
Apart from allowing its value to be queried, the queue manager takes no action
based on the value of this attribute.
|
_________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
zpat |
Posted: Mon Aug 02, 2004 5:09 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Perhaps it was the Notes trigger monitor or MQLSX that did it for me, or I was just imagining it.
Anyway it's something that the queue manager itself could usefully be enhanced to do, that's for sure! |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Aug 02, 2004 5:59 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
Back to top |
|
 |
|