Counter intuitively, the xdoclet tag @ejb.transaction is a class level
setting for mdbs.
Regards,
Adrian
On Fri, 2004-01-09 at 10:36, [EMAIL PROTECTED] wrote:
> > Aaaarggg
> Sorry ;-)
> >
> >>As I understand it, the only way to force re-delivery of the JMS message
> >>is to throw an EJBException
On Fri, 2004-01-09 at 07:14, [EMAIL PROTECTED] wrote:
> Hi,
>
> I have a MDB which takes messages from a Queue.
> In the onMessage() method, I am working with
> CMP beans. If something goes wrong, I want the JMS
> message to be redelivered, but the changes on the CMP
> beans should not be rolled b
al Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 09, 2004 11:37 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] MDB JMS redelivery
>
>
>> Aaaarggg
> Sorry ;-)
>>
>>>As I understand it, the only way to force re
ity bean) and still rollback the first one.
Regards,
Stephane
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 11:37 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] MDB JMS redelivery
> Aaaarggg
Sorry ;-)
>
>>As I underst
> Aaaarggg
Sorry ;-)
>
>>As I understand it, the only way to force re-delivery of the JMS message
>>is to throw an EJBException to force JBoss to rollback
>>the transaction.
>
> No. You cannot throw an EJBException from onMessage, see the spec. If you
> want to rollback the message, use messageDriv
sage, use messageDriventContext.setRollbackOnly();
For the mix between JMS and CMP, I have no idea
Regards,
Stephane
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 8:14 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] MDB JMS redelivery
Hi,
I have a MDB which takes
Hi,
I have a MDB which takes messages from a Queue.
In the onMessage() method, I am working with
CMP beans. If something goes wrong, I want the JMS
message to be redelivered, but the changes on the CMP
beans should not be rolled back.
As I understand it, the only way to force re-delivery of the J