|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Setting backout queue dynamically... is it posible? |
« View previous topic :: View next topic » |
Author |
Message
|
dfl93 |
Posted: Fri Mar 21, 2014 11:55 am Post subject: Setting backout queue dynamically... is it posible? |
|
|
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 |
|
 |
Vitor |
Posted: Fri Mar 21, 2014 12:04 pm Post subject: |
|
|
 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 |
|
 |
Tibor |
Posted: Fri Mar 21, 2014 11:46 pm Post subject: |
|
|
 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 |
|
 |
dfl93 |
Posted: Mon Mar 24, 2014 11:43 am Post subject: |
|
|
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 |
|
 |
gbaddeley |
Posted: Mon Mar 24, 2014 2:17 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 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 |
|
 |
|
|
 |
|
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
|
|
|
|