RE: [JBoss-user] MDB JMS redelivery

2004-01-12 Thread Adrian Brock
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

Re: [JBoss-user] MDB JMS redelivery

2004-01-12 Thread Adrian Brock
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

RE: [JBoss-user] MDB JMS redelivery

2004-01-09 Thread stscit04
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

RE: [JBoss-user] MDB JMS redelivery

2004-01-09 Thread Stephane Nicoll
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

RE: [JBoss-user] MDB JMS redelivery

2004-01-09 Thread stscit04
> 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

RE: [JBoss-user] MDB JMS redelivery

2004-01-09 Thread Stephane Nicoll
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

[JBoss-user] MDB JMS redelivery

2004-01-09 Thread stscit04
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