Hi,

 I have an entity bean - BMP and container managed tranaction, transaction
attribute = Required on all methods. I'm using Weblogic 5.2 and Oracle. In
ejbCreate() I insert data in a number of tables. If I catch a SqlException in
this method, I rethrow it as an EjbException. This should cause an automatic
rollback as far as I am informed, but only if I explicit make a call of
EjbContext.setRollbackOnly(), the first part of the transaction is rolled
back. I get the connection from a TxDatasource pool managed by Weblogic, and
I have set autocommit to false, which I think is nessecary for the
transaction to be able to rollback.
Can someone explain, why rollback is not done automatically ?
--
Hardy Henneberg
Konsulentfirmaet HHenneberg
Gr�nnevej 44
2830 Virum
Danmark
tel: (45) 26124565

===========================================================================
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