Page 1 of 1

About Question com.enthuware.ets.scbcd.v5.2.152 :

Posted: Fri Aug 19, 2011 11:00 am
by John WU
The question says "A bean uses bean managed transaction demarcation ...". However, the answer is choice 4 - "The bean method must NOT attempt to close the entity manager." and the explanation says "A container-managed EM is managed by the container. The bean must not close it."

So, is BMT or CMT used here? Why the question says BMT, but the answer says CMT?

Regards.

Re: About Question com.enthuware.ets.scbcd.v5.2.152 :

Posted: Fri Aug 19, 2011 7:30 pm
by admin
Transaction Management and Entity Manager are two different things. The explanation to the first option says, "It is given that the entity manager is injected by the container, therefore it is a container-managed entity manager."

A bean can use BMTD and a Container managed entity manager.

HTH,
Paul.

Re: About Question com.enthuware.ets.scbcd.v5.2.152 :

Posted: Fri Aug 19, 2011 10:18 pm
by Guest
admin wrote:Transaction Management and Entity Manager are two different things. The explanation to the first option says, "It is given that the entity manager is injected by the container, therefore it is a container-managed entity manager."

A bean can use BMTD and a Container managed entity manager.

HTH,
Paul.
Thanks Paul. It's enlightening.