Hi,Hi, In onMessage() method of MDB I am calling a method which throws an exception.In onMessage() I am catching the exception but the onMessage()method is going in an infinite loop.
Any clues what's going wrong?
if your MDB throws a RuntimeException from onMessage(), that is interpreted as a "System" exception by your J2EE container. As a consequence, the transaction is rolled back and since the delivery of the message to the MDB takes part to the transaction, it is rolled back. So the message is not considered as delivered and the JMS implementation will try to deliver it again and again...
Regards.
Thanks in advance. Ravi
__________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
