• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS rollback to Dead Letter  RSS feed

 
Mahesh Trikannad
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to rollback a JMS transaction, causing the JMS provider to move the message to another queue ( Like a dead letter queue or something ).

We have a application, which reads of JMS and does some database transactions, all as part of one XA transaction..
If we find the message has some problems, we want to rollback the database,
But we don�t want the rollback off JMS to have us read the message again.
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mahesh,

Read this article, it is very informative and will probably answer to many of your questions regarding JMS transacted sessions and message redelivery.
Regards.
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry ... Here there is the link:
http://www.javaworld.com/javaworld/jw-03-2002/jw-0315-jms_p.html
Regards.
 
Mahesh Trikannad
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Valentin,

Unfortunately I cannot get to that site.
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can�t either, but I could yesterday. You can try little bit later, because it�s definately worth it. Their site might encounter some temporarily problems though.
 
Mahesh Trikannad
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Valentin,

It is indeed a good article.

I have a Question though

It mentions that if a JMS transaction is rolled back and if the number of retries is exceeded, The message may be lost , send to a exception handler OR send to another queue.

How, is this controlled.

Since I want a reliable system, I certainly do NOT want to lose a message, under any circumstances.
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

It looks like a configuration setting and it probably depends upon the type of JMS provider you�re using. Currently we�re using Weblogic and its JMS capabilities but I don�t know from the top of my head how to do this. However if you intend to do the same, let me know because I might talk to one of our engineers, or I can look in some of the bea�s books in order to find the answer.
Regards.
 
Mahesh Trikannad
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are using Jonas, with MQ.

Do you know what the default behaviour is, after the mumber of retries are exceeded.

Regards

Mahesh
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I don't.
Regards.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!