ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Modify priority and rollback

Post new topic  Reply to topic
 Modify priority and rollback « View previous topic :: View next topic » 
Author Message
wellwisher
PostPosted: Thu Dec 09, 2010 10:13 pm    Post subject: Modify priority and rollback Reply with quote

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
View user's profile Send private message
Mr Butcher
PostPosted: Thu Dec 09, 2010 10:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
wellwisher
PostPosted: Fri Dec 10, 2010 12:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Modify priority and rollback
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.