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 » Handling Exceptions When output queue is full

Post new topic  Reply to topic
 Handling Exceptions When output queue is full « View previous topic :: View next topic » 
Author Message
kavya0105
PostPosted: Tue Sep 17, 2013 2:49 am    Post subject: Handling Exceptions When output queue is full Reply with quote

Newbie

Joined: 13 Jun 2013
Posts: 7

Hi all,

I need some clarification regarding MQ. The scenrio is when the MQOutput is reaches the maximum depth and fails with queue is full.In that scenerio i need to pass the original message back to the input queue. The message should not be discarded. Is there any way to do this?
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Sep 17, 2013 2:52 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Moving this to a more appropriate forum. kavya0105, please take more care where you post next time, thank you.

In answer to your question, there's nothing to pass back - the 'message' will never have been in WMQ and it's an application responsibility to deal with the buffer content.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Andyh
PostPosted: Tue Sep 17, 2013 4:34 am    Post subject: Reply with quote

Master

Joined: 29 Jul 2010
Posts: 239

Assuming this is an application that consumes a message from an input queue and responds with a message to an output queue, then placing these actions in a unit of work (MQGMO_SYNCPOINT, MQPMO_SYNCPOINT, MQCMIT/MQBACK) will allow you to undo the MQGET in the case where the MQPUT fails.
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Sep 17, 2013 4:53 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Andyh wrote:
Assuming this is an application that consumes a message from an input queue and responds with a message to an output queue...

Good spot - yet another one of my doh! days
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Sep 17, 2013 4:54 am    Post subject: Re: Handling Exceptions When output queue is full Reply with quote

Grand High Poobah

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

kavya0105 wrote:
The message should not be discarded. Is there any way to do this?


Catch the failure of the MQOutput node, determine that it's a queue full error and write logic to return the message as you describe.

Simple.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Tibor
PostPosted: Tue Sep 17, 2013 6:38 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

In the simplest scenario: set the Backout Queue and Backout Threshold on your input queue, so the failing messages will be automatically arriving into your backout queue. But as Vitor wrote, there are more options...
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Sep 17, 2013 7:06 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Tibor wrote:
...so the failing messages will be automatically arriving into your backout queue...

I dispute that - the application still requires logic to put the message to the BOQ, WMQ will not do it for you.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Tibor
PostPosted: Tue Sep 17, 2013 7:18 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

You are right, this is not the WMB forum.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Sep 17, 2013 7:19 am    Post subject: Reply with quote

Grand High Poobah

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

exerk wrote:
Tibor wrote:
...so the failing messages will be automatically arriving into your backout queue...

I dispute that - the application still requires logic to put the message to the BOQ, WMQ will not do it for you.


My working assumption, given that the OP refers to the MQOutput failing because the queue is full and not that the MQPut fails because the queue is full, is that the OP is using WMB and this most certainly will put messages on the backout queue for you.

The same is true of an app running under WAS.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Sep 17, 2013 7:21 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Vitor wrote:
exerk wrote:
Tibor wrote:
...so the failing messages will be automatically arriving into your backout queue...

I dispute that - the application still requires logic to put the message to the BOQ, WMQ will not do it for you.


My working assumption, given that the OP refers to the MQOutput failing because the queue is full and not that the MQPut fails because the queue is full, is that the OP is using WMB and this most certainly will put messages on the backout queue for you.

The same is true of an app running under WAS.

Which is why I don't have WAS or WMB/IB on my CV - I have enough trouble convincing people I know what I'm talking about just with WMQ
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
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 » Handling Exceptions When output queue is full
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.