You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by jExam Group <to...@jexam.de> on 2001/08/26 18:42:31 UTC

rollback problems in session facade

Hello,

I am using a SessionBean as a Facade to my EntiyBeans!
Well, in one of my SessionBeans I have implemented a method which creates
some EntityBeans. Thats all ok, however after that creation I also call some
additional set-methods on these creates EntityBeans. If one of these method
calls fails an exception is thrown and the transaction is rollbacked.
Howerever, the created EntityBeans in that transaction context are still
available that means the corresponding entries in my database are still
there and were not rollbacked.

Is that behavior correct or do I do anything wrong, so that I have to remove
all created EntityBeans on myself in the catch-clause of my try-catch
block??

Thank you

Daniel Schaller