File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes MDB Poison message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "MDB Poison message" Watch "MDB Poison message" New topic
Author

MDB Poison message

Dave Teare
Ranch Hand

Joined: Oct 09, 2002
Posts: 80
Hi all,
What does WebSphere do if a message delivered to an MDB fails multiple times? (i.e. fails more than the maximum retry setting) I assume it must store it somewhere for an admin to look at. Where is this and what tools are available to process / review them?
I want to use a MDB to process credit card orders and don't want to worry about lost messages. Of course I will use CMT s.t. if the MDB fails the message will be returned to the queue, but I am worried about poisoned messages.
Thanks!
--Dave.
Peter Kristensson
Ranch Hand

Joined: Jul 02, 2001
Posts: 118
Hi.
My experience on this is dependant on how they fail.
If you throw an exception during your processing of the messages, the WAS will likely just shut down the listener port on the server.
This will leave the messages on the queue and WAS will attempt to process them once again when you open up the listener port.
/Peter
jai deep
Greenhorn

Joined: Dec 01, 2004
Posts: 6
Hi Peter,

We are developing an application and we are facing a problem. I am using using WAS 5.1 and MQ simulator. I am sending email messages using JMS. I have configured the Queue and Queue connection factory as well as Listener port. Most of the time the code works fine but sometime the listener get stopped and we have to start it again.

We do not want to start out Listener again and again to send message. On java ranch you have suggested that exception in code could make Listener port stop working.

My onMessage method is as follows:-



It is using emailutility class for sending message. Here what changed I should do for not stopping Listener port?


with regards
Jai
[ December 01, 2004: Message edited by: jai deep ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MDB Poison message