Page 1 of 1

About Question enthuware.oce-jpad.v6.2.377 :

Posted: Fri Feb 13, 2015 12:45 pm
by madouat
I think this question need to be clarified. I agree with the fact that it is a BMT. But for the second answer
It must be a stateful session bean.
, nowhere it has been said that transaction should continue or not.
Thanx

Re: About Question enthuware.oce-jpad.v6.2.377 :

Posted: Fri Feb 13, 2015 9:59 pm
by admin
It says in requirement 1: Both the methods will be called by the client in the same transaction scope.
So it is clear that the transaction has to continue.

Re: About Question enthuware.oce-jpad.v6.2.377 :

Posted: Sun Feb 22, 2015 9:47 am
by swiss-chris
A stateless session bean must either committ or rollback a transaction before it returns.
Is this always true or only for bean managed transactions?

Re: About Question enthuware.oce-jpad.v6.2.377 :

Posted: Sun Feb 22, 2015 9:48 pm
by admin
It is true for all stateless session beans. Because the same instance of a bean may be used to service different clients. Therefore, continuing the transaction beyond a method doesn't make sense for stateless SBs.

HTH,
Paul.