How bean-managed transactions will work?



How bean-managed transactions will work?..

Answer / guest

When a bean with bean managed transactions is invoked, the
container suspends any current transaction in the client?s
context. In its method implementation, the bean initiates
the transaction through the JTA UserTransaction interface.
In stateful beans, the container associates the bean
instance with the same transaction context across subsequent
method calls until the bean explicitly completes the
transaction. However, stateless beans aren?t allowed to
maintain transaction context across method calls. Each
method invocation must complete any transaction it initiates.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More EJB Interview Questions

What is ejb and its uses?

0 Answers  


what s the difference b/w EJB 2.0 and EJB 3.0 technically

2 Answers   Microsoft, Mind Tree, Tech Mahindra,


what is the difference between stateless and stateful sessions?

10 Answers   HCL,


what is ejb

3 Answers   Tech Mahindra,


What is an entity manager?

0 Answers  






What is stateful session bean?

0 Answers  


What is ejb home object?

0 Answers  


Basic types of Enterprise JavaBeans?

4 Answers   TCS,


What is meant by manifest files ?

2 Answers  


What do you mean by EJB architecture?

0 Answers  


What is a local interface?

0 Answers  


What does @singleton annotation do?

0 Answers  


Categories