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 sure in your <session> definition in ejb-jar.xml you specify
transaction-type as container.

Regards

Eric

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ionel
Gardais
Sent: Tuesday, July 01, 2003 10:51 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] SLSB atomicity

Hi,

I have a SLSB acting as a facade for all my CMP entities.
In one of my SLSBmethods, I create two CMP beans.

Is it possible to give this method an atomicity so if the first bean's 
creation fails, the second one shouldn't be created OR if the second 
bean's creation fails, the first bean should be deleted ?

thanks,
ionel



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to