persistence@glassfish.java.net

Re: persistence.xml in Java SE environment

From: Tom Ware <tom.ware_at_oracle.com>
Date: Thu, 09 Feb 2006 08:49:22 -0500

Michael and Marina,

  Michael is right. Java SE examples should be updated to use
RESOURCE_LOCAL.

-Tom

Michael Bouschen wrote:

>Hi Marina,
>
>the <persistence-unit> element in the persistence.xml file has an
>attribute transaction-type which defaults to JTA. I think this default
>is not useful in a Java SE environment, so the persistence.xml file
>should explicitly set the attribute to RESOURCE_LOCAL in this case.
>
>We should update the persistence.xml in the Java SE available on the
>glassfish "Persistence Example" page. What do you think?
>
>Regards Michael
>
>

-- 
Tom Ware
Principal Software Engineer
Oracle Canada Inc.
Direct: (613) 783-4598
Email: tom.ware_at_oracle.com