This content has been marked as final.
Show 2 replies
-
1. Re: Transaction problem in CMP ??
joelvogt Jul 15, 2002 6:56 AM (in response to eric138)Well, you can configure methods in your ejb-jar.xml to be transaction required and throw EJBExceptions (EJBException, RemoteExceptions etc..) to get a rollback,
OR
do a
setSessionContext().setRollbackOnly();
If you only want to be control it directly -
2. Re: Transaction problem in CMP ??
sweetfa Jul 17, 2002 4:43 AM (in response to eric138)In your ejb-jar.xml set <trans-attribute>Required</trans-attribute> within the assembly descriptor for each of the entity bean business logic methods that are to be accessed from the SessionBean.
Also do the same for the method that instigates all of this in the SessionBean, or set it to RequiresNew if that is more appropriate for your needs.