|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Modify priority and rollback |
« View previous topic :: View next topic » |
Author |
Message
|
wellwisher |
Posted: Thu Dec 09, 2010 10:13 pm Post subject: Modify priority and rollback |
|
|
Newbie
Joined: 09 Dec 2010 Posts: 2
|
Hi all,
I am using a Java MQSeries client.
My requirement is simple. I want to modify priority (reduce mainly) of a message before rolling it back.
Can this be done? Please let me know if I need to post more details (versions, etc..).
Read on if you wish to know the reason behind using this approach.
1. There is queue from which I read all messages.
2. A thread consumes the message, processes it and sends it down to one of multiple systems (over a direct network connection) depending on the message's properties.
3. If the downstream system is unavailable, I wish to rollback the message and retry later.
4. At the same time I want to reduce its priority so that other messages destined for other available systems can be processed.
Thanks,
Santosh. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Thu Dec 09, 2010 10:20 pm Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
you can not change a message content or message header during rollback.
to change priority, you have to mqget, change priority, mqput and commit.....
maybe its worth using a second queue to put these messages to and process that queue later. but in that case you also have to mqget and mqput. _________________ Regards, Butcher |
|
Back to top |
|
 |
wellwisher |
Posted: Fri Dec 10, 2010 12:19 am Post subject: |
|
|
Newbie
Joined: 09 Dec 2010 Posts: 2
|
Thanks so much for reply!
Probably best to try another retrial mechanism as you imply.
Thanks again!
Santosh. |
|
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
|
|
|
|