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

Moderator: admin

Post Reply
John WU

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

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

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

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

Post 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.
If you like our products and services, please help us by posting your review here.

Guest

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

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

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests