No, it's not a subtransaction. The new transaction is completely independent of
the original, it just so happens that the lifetime of the new one is completely
nested in the lifetime of the old. The commit of the new transaction is
unaffected by the completion status of the original transaction.
Gabriel Lawrence wrote:
> Ahhh... Ok, so if I do the TX_REQUIRES_NEW attribute, if that sub transaction
> commits, but the original transaction fails, does this sub transaction get
> rolledback?
>
> thanx,
> -gabe
>
> Chris Raber wrote:
>
> > You are correct, since you haven't commited yet, the ejbStore call is still
> > pending for the entity bean...
> >
> > Sounds like you need your entity bean to execute in its own transaction. You
> > could force this by having its transaction mode be TX REQUIRES NEW
> >
> > -Chris.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".