This content has been marked as final.
Show 3 replies
-
1. Re: jms and transaction
adrian.brock Jan 16, 2004 6:10 AM (in response to yxyang)The default attribute for MDBs is NotSupported are you sure you have Required?
You shouldn't throw an exception from onMessage() you should do
try
{
}
catch (Throwable t)
{
messageDrivenContext.setRollbackOnly();
}
Most likely you will see an error saying there is no transaction when you try to do this.
Regards,
Adrian -
2. Re: jms and transaction
yxyang Jan 16, 2004 6:17 PM (in response to yxyang)If following is done, whether the message will be put back into the queue?
try
{
}
catch (Throwable t)
{
messageDrivenContext.setRollbackOnly();
}
regards
yang -
3. Re: jms and transaction
adrian.brock Jan 16, 2004 6:37 PM (in response to yxyang)Suck it and see.
http://www.catb.org/~esr/faqs/smart-questions.html
Regards,
Adrian