Hi,
thanks for all your answer.
I look at my xdoclet tags and for now here is the thing :
- all my CMP have the transactions set to Required, no transaction-type
specified
- the facade have a transaction-type set to Container and no transaction
attribute sets.
Assuming the following flowchart
On Wed, Jul 02, 2003 at 09:26:40AM +0200, Ionel Gardais wrote:
Hi,
[snip]
I have now hard coded all transaction-type=Container in all my beans
(SLSB and CMP), transaction=Required in the CMP and
transaction=RequiresNew in the SLSB.
If your entity beans are only accessed from the facade,
Assuming the SLSB requires a transaction and the CMP create does not
create a new one it should be atomic already.
-Original Message-
From: Ionel Gardais [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 7:51 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] SLSB atomicity
Hi,
I
Ionel
The container will manage all of this for you. In your ejb-jar.xml,
specify container transaction type Requires for the create methods of
your two entity beans, and RequiresNew as the transaction type for your
SLSB method. The container will manage handling exactly what you want.
Make
Catch the CreateException and setRollbackOnly() on the session context.
Regards,
Adrian
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
:56
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] SLSB atomicity
He is not getting an application error but rather an EJB create
exception so my assumption would be he does not need to catch and
rollback: set the right attributes (requires and requires existing
transaction) on those
Macpherson
Sent: 01 July 2003 17:56
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] SLSB atomicity
He is not getting an application error but rather an EJB create
exception so my assumption would be he does not need to catch and
rollback: set the right attributes (requires and requires existing
: Adrian Brock [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 8:44 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] SLSB atomicity
Catch the CreateException and setRollbackOnly() on the session context.
Regards,
Adrian
Adrian Brock
Director of Support
Back Office