Is this explanation in the docs? If not it should be, it is clear and
consise.

Documentation bugs are good bugs.

Clay

On Thu, 2004-08-05 at 12:13, Harkness, David wrote:
> Kyle Korndoerfer penned
> > Can someone expand upon the meaning of the various ejb.transaction
> > types? I understand what they mean, but am unsure where each of the
> > types applies. The online documentation doesn't expand upon any of
> > them.
> > 
> > For instance, what's the difference between "Required" & "Mandatory"?
> > In a literal sense, these would seem to be one-and-the-same, but there
> > must be a difference since they are both listed.
> 
> Required will use an existing transaction if present or begin and
> commit/rollback a new one if not.
> 
> Mandatory requires an existing transaction and will not begin its own.
> 
> RequiresNew will always begin a new transaction. Note that the container
> will suspend the current transaction, if there is one, until this method
> completes.
> 
> Supports will use an existing transaction if present but does not
> require one.
> 
> NotSupported will suspend an existing transaction while the method
> executes.
> 
> Never will fail if called within the context of an existing transaction.
> 
> To clarify, the difference between Mandatory and Required is what
> happens when the method is called outside the scope of an existing
> transaction. Required will begin a transaction and Mandatory will throw
> an exception.



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to