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 Java / JMS » Setting backout queue dynamically... is it posible?

Post new topic  Reply to topic
 Setting backout queue dynamically... is it posible? « View previous topic :: View next topic » 
Author Message
dfl93
PostPosted: Fri Mar 21, 2014 11:55 am    Post subject: Setting backout queue dynamically... is it posible? Reply with quote

Newbie

Joined: 06 Jan 2014
Posts: 8
Location: Chile

In a MDB, for the request queue , Can I change the backout queue name parameter from the app? I know this parameter is configured in the queue definition on the queue manager ( BOQNAME) but...
The situation is:
My application must be available to, for one exception and after threshold count, roolback the transaction and send the message to queue1 for be manually reinjected for re-process. But other exception, need to be rollback the transaction and send the message to queue2 for inmediatly reprocesing. Again, after the threshold count occur. All this are exceptions.

My container (WebSphere Application Server) manage the transaction. I need, depending of the exception, send the poison message to diferents backout queue. Of course, when the threshold count occur.

My JMS provider is WebSphere MQ.

Thank.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Mar 21, 2014 12:04 pm    Post subject: Reply with quote

Grand High Poobah

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

You can programatically change the queue parameters via a PCF command, but I shudder to think what would happen if you had a multi-threaded situation where appA changes the backout queue to queue1 and, before it could roll back, appB changes it to queue2 and tries to roll back.

If it was me, I'd handle the putting of the message to queue1 or queue2 within code (when it determines what kind of exception it is). Note that you can programmatically obtain the backout threshold from the queue definition.

Especially as it avoids the need for a business MDB to have admin authority to change queue properties.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Tibor
PostPosted: Fri Mar 21, 2014 11:46 pm    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

Quote:
If it was me, I'd handle the putting of the message to queue1 or queue2 within code..."

Or you can use the original backout queue as an input queue of an exception handling MDB.
Back to top
View user's profile Send private message
dfl93
PostPosted: Mon Mar 24, 2014 11:43 am    Post subject: Reply with quote

Newbie

Joined: 06 Jan 2014
Posts: 8
Location: Chile

No. Change the backout queue name with pcf commands is not an option for me.

Like you, I think is better manage this situation with code.

I thought that change the backout queue name, from the client, was possible and simple.

Thank you.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Mon Mar 24, 2014 2:17 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2494
Location: Melbourne, Australia

dfl93 wrote:
I thought that change the backout queue name, from the client, was possible and simple.

Possible, but fraught with design issues. Its better to code the logic into the app rather than try to use MQ in a way that it was not designed.
_________________
Glenn
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 Java / JMS » Setting backout queue dynamically... is it posible?
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.