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 the difference between stateless and stateful sessions?

10 Answers   HCL,


Can you be deported if you are stateless?

0 Answers  


Is having static initializer blocks legal in ejb?

0 Answers  


How many enterprise beans?

0 Answers  


What is Enterprise JavaBeans Query Language (EJB QL)?

0 Answers  






Can EJB made to handle multiple transactions?

0 Answers  


What is applicationscoped?

0 Answers  


Can an ejb send asynchronous notifications to its clients?

0 Answers  


What are the required methods to implement EJB architecture?

2 Answers  


How do I use a less than or greater than on a message selector in ejb-jar.xml?

0 Answers  


What is Enterprise JavaBeans?

1 Answers  


What is persistence?

2 Answers  


Categories