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

How does ejb invocation happens?

554


can u explain about design patterns like singleton,builder,factory

1895


Write the basic requirement of a cmp entity based class in 2.0 from ejb 1.1?

595


What is remote interface in ejb?

536


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

531






What are the callback annotations for entity bean?

517


What are the benefits of ejb?

557


Is functional programming stateless?

527


What changes have been made in ejb 2.0 specifications?

614


Why do we use @requestmapping?

522


What is the default transaction attribute for an ejb?

543


What were entity beans?

592


An instance of stateful session ejb when accessed simultaneously from more than one clients on same vm results in remoteexception or ejbexception. In case the client is a servlet thread, which of the techniques can be used to avoid remoteexception/ejbexception?

566


How to determine, that beans are TX or not?

1625


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

626