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

Moderator: admin

Post Reply
madouat
Posts: 2
Joined: Fri Feb 13, 2015 12:30 pm
Contact:

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

Post 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

admin
Site Admin
Posts: 10386
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

swiss-chris
Posts: 11
Joined: Fri Jan 23, 2015 5:05 am
Contact:

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

Post 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?

admin
Site Admin
Posts: 10386
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests