users@glassfish.java.net

Re: JPA portability with JNDI names

From: Sahoo <Sahoo_at_Sun.COM>
Date: Tue, 25 Nov 2008 18:29:29 +0530

glassfish_at_javadesktop.org wrote:
> So I would need two persistence.xml files and I need to change them when I'm trying to deploy the war to either JBoss or Glassfish.
>
Looks like the JPA spec authors anticipated this *portability* problem.
e.g., JPA 1.0 spec says the following in section #6.2.1.5:
/"These elements name the data source in the local environment; the
format of these names and the ability to specify the names are product
specific."/

Sahoo