Hi,
i think i have found the reason for my Transaction-Problem.
the problem:
I have a function which makes different updates and inserts.
In my testcase the third insert caused an Exception, but the first
two inserts stay in the Database in spite of calling a Transaction
rollback.
The reason for this was that the session bean was created
before starting the transaction. Now i create the session-Bean after
starting the Transaction and so everything works fine.
BTW, The test of lConnection.getAutoCommit() gives furthermore true, but
this has no effect.
Regards Matthias Lak�mper
------------------Code--------------------------------------------------
lSession.remove();
lTransaction = (UserTransaction)
lContext.lookup( "UserTransaction" );
// Start the transaction
lTransaction.begin();
lSession = lHome.create();
lSession.doWork(parameter);
------------------Code--------------------------------------------------
______________________________________________________________________________
vCard - noch nie gehoert? Dann schaun Sie mal rein bei WEB.DE FreeMail.
http://freemail.web.de/features/?mc=021155
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general