Author |
Message
|
ipmqadm |
Posted: Fri Sep 14, 2012 7:55 am Post subject: Reordering of MQ messages during rollback |
|
|
Acolyte
Joined: 18 Apr 2007 Posts: 68
|
"When messages are rolled back to a queue, is there any setting/feature that would allow a message to be placed at the bottom of the queue instead of its original order?"
I was aked this question and replied 'NO', but wanted to see if any of you other experts here knew of something I don't. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Sep 14, 2012 8:24 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
You could define a backout queue, roll the failing message onto that and (with some external process) move that message from the backout queue to the original queue where it would (obviously) be at the bottom.
Assuming the queue is ordered FIFO not priority of course. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ipmqadm |
Posted: Fri Sep 14, 2012 9:23 am Post subject: |
|
|
Acolyte
Joined: 18 Apr 2007 Posts: 68
|
Thanks Vitor...
Yeah the backout queue would work, but the whole issue here is the 'automated' aspect of this request. Therefore it would have to be something that the qmgr could perform for us without some other form of intervention to do the reordering.
I'm just convinced it simply can't be done and even questioned the requestor as to 'why' they would want to reorder the sequence during rollback... |
|
Back to top |
|
 |
Vitor |
Posted: Fri Sep 14, 2012 10:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ipmqadm wrote: |
Yeah the backout queue would work, but the whole issue here is the 'automated' aspect of this request. Therefore it would have to be something that the qmgr could perform for us without some other form of intervention to do the reordering. |
So you don't believe the external process I mentioned could be executed by a trigger set on the backout queue? IBM will be gutted to discover trigger processes can't run an external script.....
ipmqadm wrote: |
I'm just convinced it simply can't be done and even questioned the requestor as to 'why' they would want to reorder the sequence during rollback... |
You're certainly correct that you can't get the queue manager to roll the message back onto the end of the queue rather than the front. I would theorise that they want the message at the end of the queue in the hope any transient error will be fixed by the time it works it's way to the front, but it is a little unusual. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Sep 14, 2012 11:01 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
ipmqadm wrote: |
'why' they would want to reorder the sequence during rollback... |
A strict definition of 'rollback' means that reordering the sequence is strictly not rollback. "rollback" means "back where it came from", not "back where I want it to go".
So either they can put it somewhere that they want to, or they can roll it back. |
|
Back to top |
|
 |
|