Hi,
I am facing a problem with using SessionContext's
setRollbackOnly method.
I am having 3
EJB's(Suppose A,B,C) in which A calls a method in B and this method calls a method in C.
I perform a database operation, where it waits for a lock and finally database transaction times out and finally the exception is passed back to A.
And finally in A, i call the setRollbackOnly method, where it throws the
java.lang.IllegalStateException saying
'Cannot mark the transaction for rollback'.
All the three beans are container managed and i have a transaction attribute '
Required' set in the descriptor file.
Can some one help me out with this.
Regards,
Dilip