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 » General IBM MQ Support » MQ Back Out

Post new topic  Reply to topic
 MQ Back Out « View previous topic :: View next topic » 
Author Message
sidhusaju
PostPosted: Sun Jul 01, 2007 9:15 pm    Post subject: MQ Back Out Reply with quote

Apprentice

Joined: 03 May 2007
Posts: 27

Hi All,

I have developed a .Net application using MQ server. In that application I want to add a loop such a way that , while putting messages in to the Queue, the application must try to put the message('n' times equivalent to the Backout count set at the mq server, In case of a back out. if it fails for 'n' times the application should try with the next message.). But I don't want to put the message in to the Back out Queue . Is that possible to set the Backout count without mentioning the Backout Requeue name.

Any help would be appreciated.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Sun Jul 01, 2007 9:48 pm    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

the backout counter in the mqseries message descriptor is set when you try to get messages from a queue, this value is ignored for the mqput or mqput1 call.

if you want something similiar you have to create a put-backout-counter on your own. from my point of view you should review your design. if the putting application abends, then in most cases this is not an mqseries issue. if the mq put is unsucessfull, then you will get proper returncode (e.g. queue full) and you keep control, so you can take proper actions. if you abend, who should then increase a counter? and where? and why?
_________________
Regards, Butcher
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jul 02, 2007 12:14 am    Post subject: Re: MQ Back Out Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sidhusaju wrote:
In case of a back out. if it fails for 'n' times the application should try with the next message.). But I don't want to put the message in to the Back out Queue .


So where does the failed message go? It's not been put to the queue so where is it? How does your application proceed with the "next" message without putting this failed message somewhere?

MQ doesn't set backout on put, because MQ has not backed it out - it's never accepted it. IMHO put will fail either because a queue is temporarially full or there's a permanent error. In both cases if repeated put attempts over a period of time have failed then the "next" message is going to fail the same way and you'll have 2 messages somewhere

Mr Butcher is quite right - you should look at your design. Or at least explain your error handling in more detail because it sounds odd.

For what it's worth, what you're planning is simple to code. Odd, but simple.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » General IBM MQ Support » MQ Back Out
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.