Once you commit/rollback, the transaction is gone.  Any more work you do will
be out of transactional scope until you call begin() again.  As far as how
long they may be associated, transactions have a timeout that is
user-specified (in one of the xml files, I forget if it is ejb-jar or jboss),
after which they will effectively auto-rollback.  The timeout is implemented
via some classes in org/jboss/util.

-Charles

Aaron Mulder wrote:

>         Got a question about user-demarcated transactions.  If you start a
> transaction, can you do some work, commit or rollback, do more work,
> commit or rollback again, etc?  Or does the transaction end once you
> commit it or roll it back?  I'm going to try to fix the Minerva problem
> where it breaks if you don't close a connection before the transaction
> commits, and I'm trying to figure out how long this connection and
> transaction may be associated...
>
> Aaron


Reply via email to