users@glassfish.java.net

Re: Trouble with transactions

From: Duncan Bloem <dabloem_at_gmail.com>
Date: Wed, 25 May 2011 16:52:52 +0200

Hi Ron,

What kind of database do you use, e.g. MySQL isam isn't transaction aware.

Duncan

On Wed, May 25, 2011 at 4:23 PM, <forums_at_java.net> wrote:
> What you probably want is the annotation
>
> <code>@TransactionAttribute( TransactionAttributeType.REQUIRED )</code>
>
> on each of the methods invloved. That way they will join a transaction if
> there is one already started or start a new transaction if there isn't.
>
> Nick
>
>
> --
>
> [Message sent by forum member 'nickwi']
>
> View Post: http://forums.java.net/node/805914
>
>
>