aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Handling poision messages in error queue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Handling poision messages in error queue" Watch "Handling poision messages in error queue" New topic
Author

Handling poision messages in error queue

joe nesbitt
Greenhorn

Joined: Dec 05, 2009
Posts: 17
Hi all,

In our system, whenever a JMS message procesing from a queue fails due to an application exception, the message is put on a different queue (error queue). It is observed that some of the failed messages are poision messages due to bad format that need manual fix and resent to the queue. The queues are durable and have an entry in the database table for each JMS message.

What are the ways to handle poision messages - Is there a way to store the message in the error queue itself without being reprocessed by the Spring Message driven pojo (MDP) by setting any flag/status on the message/session/connection?

Or is it better to store the message in a database table for further analysis and resend the message to the queue after it is corrected?

Any ideas are highly appreciated.

Thanks in advance.
 
Don't get me started about those stupid light bulbs.
 
subject: Handling poision messages in error queue