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 » Dealing with Backout Queues.

Post new topic  Reply to topic
 Dealing with Backout Queues. « View previous topic :: View next topic » 
Author Message
Kareem_khan
PostPosted: Mon Sep 20, 2004 11:39 am    Post subject: Dealing with Backout Queues. Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
fjb_saper
PostPosted: Mon Sep 20, 2004 4:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Kareem_khan
PostPosted: Wed Sep 22, 2004 7:34 am    Post subject: error text Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
fjb_saper
PostPosted: Wed Sep 22, 2004 6:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Dealing with Backout Queues.
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.