Posted: Mon May 02, 2005 10:21 am Post subject: Message getting back to the queue..
Novice
Joined: 08 Apr 2005 Posts: 24
Hi,
I am using WAS/MQ and JMS as the api. I am an inbound queue and an error inbound queue. I receive the message off the error q and just log it to a file. From th inbound queue i get the message, try to process it , if there is an exception thrown i log it to the rejected message log. It seems that the messages which throw an exception are getting thrown back to the queue.
Do i have to commit the session every time i process/reject a message?
Following is the code snippet
try {
Context context = new InitialContext();
Read the part about transaction and messages and JMS and websphere.
Look either in a Websphere, JMS, or MQ manual (using Java)
You need to familiarize yourself with MDBs and Backout queues etc...
What you are attempting there is not the best of designs.
I would not try to read off the data queue and off the error queue in the same transaction... It just ain't healthy...
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