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 » Retry after few hours ...

Post new topic  Reply to topic
 Retry after few hours ... « View previous topic :: View next topic » 
Author Message
arun_vz
PostPosted: Thu Mar 04, 2010 10:06 am    Post subject: Retry after few hours ... Reply with quote

Newbie

Joined: 21 Oct 2009
Posts: 1

Hello MQ experts,

Currently we are doing this:

1. Client program get the message from Q
2. Client program calls a webservice
3. if webservice is down, then move the message to failQ
4. Process the messages from failQ manually when the webservice is back up again

Now, we want to do this:

1. Client program get the message from Q
2. Client program calls a webservice
3. if webservice is down, then move the message BACK to original Q with s SLEEP time on it, say 3 hours or so (assuming the webservice comes back up during this time)
4. After 3 hours, this message should be available to be "GET" by the client program and try processing it again.

How can we achieve this? and are there any better ways of doing this?

We are using MQ v6 on Solaris.

Thanks
arun_vz
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Mar 04, 2010 10:18 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Sure.
In your program
1) MQGet with Transaction
2) Try webservice
3) If webservice fails
3a) Rollback MQ transaction
3b) sleep() for three hours
3c) wake up, go to 1
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 » Retry after few hours ...
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.