|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Dealing with Backout Queues. |
« View previous topic :: View next topic » |
Author |
Message
|
Kareem_khan |
Posted: Mon Sep 20, 2004 11:39 am Post subject: Dealing with Backout Queues. |
|
|
Apprentice
Joined: 09 Jul 2004 Posts: 27 Location: Jackson,MS
|
While processing messages due to problems with duplicate data application exception or any system exception
After specific set of retry message goes in to back out queue the message is XML text message.
I wanted to add the exception String that is causing message to go to back out queue.
I.e. append XML exception message as a tag how can I do it.
The problem is, every time transaction roles back message is going back to its previous stage so any changes that are made to that message could not hold. Can any body have idea to deal with this kind of problem?
Thank you in advance |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Sep 20, 2004 4:41 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
We use a backout queue. The message gets consumed from its original queue, gets put on the backout queue. An additonal message gets put on the backout queue with correlationid = badmessage id. This message contains the error text and the stacktrace.
Enjoy |
|
Back to top |
|
 |
Kareem_khan |
Posted: Wed Sep 22, 2004 7:34 am Post subject: error text |
|
|
Apprentice
Joined: 09 Jul 2004 Posts: 27 Location: Jackson,MS
|
Hi fjb_saper,
Thank you very much fjb_saper for reply.I am new to JMS can you please tell me How can we retrive error text and the stacktrace from
the backout message. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Sep 22, 2004 6:32 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
you retrieve from the exception being thrown in the catch process.
I'm just having some code like this
Code: |
}catch (JMSException jmse){
ExceptionHandler.handleJMSException(jmse);
|
The class is static and handles all this stuff. You could add a logger and log as well.
Enjoy  |
|
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
|
|
|
|