-
1. Re: "rollback" a Message during onMessage()
mefesto78 Aug 28, 2002 9:09 AM (in response to wdfink)In your message driven bean, are you throwing a TransactionRolledBackLocalException when you detect an error and do not want to continue processing?
That will keep the transaction from completing and the message will stay in queue.
Allen -
2. Re: "rollback" a Message during onMessage()
simonh10 Sep 5, 2002 10:02 AM (in response to wdfink)TransactionRolledBackLocalException is not in any of the jar files and the MessageListener does not specify that an exception is thrown, could you be a little more exact as I would like to achieve transactional stuff in message driven beans.
-
3. Re: "rollback" a Message during onMessage()
simonh10 Sep 5, 2002 10:45 AM (in response to wdfink)Well, I've managed to get it working in a different way than suggested above.
Good article to explain it.
http://www.javaworld.com/javaworld/jw-03-2002/jw-0315-jms-p5.html
Is the redelivery from a failed transaction configurable, number of retries, time between etc.
The system tries to send them again when a new message arrives in the queue and when the ejb is redployed are there any other events that would make the system attempt another delivery?