|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Back Out |
« View previous topic :: View next topic » |
Author |
Message
|
sidhusaju |
Posted: Sun Jul 01, 2007 9:15 pm Post subject: MQ Back Out |
|
|
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 |
|
 |
Mr Butcher |
Posted: Sun Jul 01, 2007 9:48 pm Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Mon Jul 02, 2007 12:14 am Post subject: Re: MQ Back Out |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|