I am using Jboss 3.06.
I have a number of stateless session beans accessing a number of CMP 2.0 entitybeans. Both the session and entitybeans has the transaction attribute set to Required.
I am accessing the session beans from jsp pages.
My question is when is the transaction created?
Is there one transaction for each jsp page or one for each call to a session bean method?
If I want to calls to session bean methods to be in the same transaction, do I then have to use the UserTransaction class or not?
Or you can use a filter then configure
which urls require a transaction.
WARNING: Using a transaction in a servlet/jsp
can lead to longer running transactions because
flushes to the client can delay the commit.