I'm having difficulty getting a rollback to occur after I throw an
exception.
Here is the scenario:
I have a session bean that requires a transaction.
Step 1 - My client invokes the session bean without a transaction
established, which as I understand it will force the Session bean to create
one.
Step 2 - The Session bean invokes a method on another regular java object
Step 3 - This regular java object in turn invokes an ejbCreate method on an
Entity bean
Step 4 - The Session bean does some additional processing and determines it
should throw an exceptionwhich extends from EJBException
Step 5 - The Session bean throws the exception

However, the original Entity bean crated in Step 3 is NOT rolled-back ???
I using WLS 6.0 and Oracle with the standard OraclePool and data source.

I wonder if the context of the transaction is lost as a result of the
Session Bean invoking a method on a regular java class which in turn invokes
the creation of the Entity bean ???

Is the transaction context thread specific ???  Or is it only passed between
EJB Entity and Session beans ???

Please help,
Thanks,
Ed

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to