To use EclispeLink as a JPA provider for GlassFish V2.1, all you need to
do is to drop EclipseLink jar in $GLASSFISH_HOME/lib dir and specifiy
EclipseLink as the provider. For V2ur2, you will need to have property
"eclipselink.target-server" set to "SunAS9" in your persistence.xml.
Following is a sample persistence.xml
<persistence xmlns="
http://java.sun.com/xml/ns/persistence" version="1.0" >
<persistence-unit name ="em">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
...
<properties>
<property name="eclipselink.target-server" value="SunAS9"/>
...
</properties>
...
</persistence-unit>
glassfish_at_javadesktop.org wrote:
> I want to migrate to EclipseLink in GFv2ur2. Is there a doc that guides how to do that? Thank you in advance.
> [Message sent by forum member 'ebc' (ebc)]
>
> http://forums.java.net/jive/thread.jspa?messageID=326378
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>