How bean-managed transactions will work?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

List down the steps for the demonstration of ejp persistence mechanism.

614


How ejb invocation happens?

564


What is ejb framework?

554


What is @enableautoconfiguration?

523


Explain transaction and various methods to manage it?

523






What is ejb and why it is used?

492


What is bean-managed persistence?

571


Name the attributes of javax.ejb.stateful.

547


Why is ejb needed?

502


How to create ejb project in eclipse?

522


Explain the concept of connection pooling feature of ejb container?

518


Where is ejb used?

513


What is a stateless session?

499


Is it possible to have threading in ejb?

544


What is ejb container?

672