-
1. Re: Peristent Message not redelivered even though MDB didnt
schrouf Oct 4, 2005 5:34 AM (in response to upankar)do you call context.setRollbackOnly() in case of a processing error ? this is the 'normal' way to force redelivery as acknowledgment is handled by the MDB container as part of the transaction handling.
regards
ulf -
2. Re: Peristent Message not redelivered even though MDB didnt
upankar Oct 4, 2005 5:14 PM (in response to upankar)Thanks. It works.. But could you please explain why it is needed to call setRollBackOnly() ? My application didnt start any transaction, so a roll-back was not necessary. Or, is it that JMS provider always invokes MDB onMessage() on a transactional context implicitely ?
Anyway.. Thanks again. Atleast, it is getting redelivered now as intended -
3. Re: Peristent Message not redelivered even though MDB didnt
schrouf Oct 5, 2005 6:59 AM (in response to upankar)It's the MDB container that handles all transactions for the MDB. The call to context.serRollbackOnly() within the MDB just sets a signal flag for the 'surrounding' MDB container that actually triggers the rollback operation.
regards
ulf