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

Why should we use ejb?

0 Answers  


What are the basic and subtypes of enterprise java beans (ejb)?

0 Answers  


What is meant by manifest files ?

2 Answers  


What is the TX operational difference between Session Bean and Entity Bean?

1 Answers  


What are stateless functions?

0 Answers  






Where a bean can be used ?

1 Answers  


What is ejb and its types in java?

0 Answers  


Is soap stateless or stateful?

0 Answers  


How do you decide whether you should use session, entity or message driven bean?

0 Answers  


What is ejb and its types?

0 Answers  


What transaction attributes does Java Bean containers support?

1 Answers  


What is stateless code?

0 Answers  


Categories