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

Name the attributes of javax.ejb.ejb.

0 Answers  


How does EJB 2.0 improve support for interoperability between EJB containers and other J2EE products?

1 Answers  


What are stateless functions?

0 Answers  


ejbCreate in Entity bean and create method in EJB home, have the same parameters?

2 Answers  


What changes have been made in ejb 2.0 specifications?

0 Answers  


What do you mean by ejbdoclet?

0 Answers  


what are required main interfaces in EJB?

2 Answers  


An EJB client, can marshall an object of the class java.lang.Class to an EJB?

2 Answers  


What is an entity and its types?

0 Answers  


What are versions of ejb?

0 Answers  


Should services be stateless?

0 Answers  


How to import ejb project in eclipse?

0 Answers  


Categories