|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Backing out group messages in .NET |
« View previous topic :: View next topic » |
Author |
Message
|
inventicus |
Posted: Fri Aug 04, 2006 2:05 am Post subject: Backing out group messages in .NET |
|
|
Newbie
Joined: 28 Jul 2006 Posts: 4 Location: Northampton, UK
|
Hi,
I'm using the .NET API (amqmdnet) and have a question about backing out group messages.
When I receive a message I am checking to see if it is a group message. If so I then retrieve all other messages that are part of that group. This is carried out in a transaction so if there are any failures everything is backed out.
When the backout threshold is met I am attempting to put all of the group messages to the backout queue.
The issue I have is the following:
If I have a group of 5 messages and there is a failure on message 3 I back out. The results appear to be all well and good.
For test purposes I have the threshold set at 0. When I do my next Get I check the backout count of all of the group messages and if it has exceeded the threshold I Put them to the backout queue.
When I look at the properties of the 5 messages, 1, 2 and 3 have a backout count of 1 while 4 and 5 a count of 0. For this reason my code never Puts 4 and 5 to the backout queue.
So what is the best way to apprach this to ensure that either:
1. All messages in the group end up with the same backout count
2. Any messages in a group that has exceeded the backout count results in all other messages being written to the backout queue
Thanks, in advance,
Ben |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Aug 04, 2006 2:11 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Well, backout processing is handled by your application.
So if you need to back out the group as a whole, then... write the code to do that...
You just need to keep track of when you've left one group and started another, and when you're getting messages for the purpose of processing them, and when you've changed to state of getting messages for the purpose of backing them out. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
inventicus |
Posted: Mon Aug 07, 2006 1:21 am Post subject: |
|
|
Newbie
Joined: 28 Jul 2006 Posts: 4 Location: Northampton, UK
|
Thanks Jeff...got it working perfectly |
|
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
|
|
|
|