Hi,

I made one of my session bean implement the SessionSynchronization interface
to see how it worked.
The behaviour I observe is strange: afterBegin() and beforeCompletion() are
called once, but afterCompletion() is called twice. The first call has the
"commited" flag set to true, while the second call has it set to false.
The net result is that the transaction is rollbacked and all the database
modifications are lost... 

Why is afterCompletion() called a second time with an indication of a
rollback?

Philippe.


Reply via email to