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.
About Question com.enthuware.ets.scbcd.v5.2.152 :
Moderator: admin
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scbcd.v5.2.152 :
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.
A bean can use BMTD and a Container managed entity manager.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
Re: About Question com.enthuware.ets.scbcd.v5.2.152 :
Thanks Paul. It's enlightening.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.
Who is online
Users browsing this forum: No registered users and 29 guests