Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EclipseLink/Examples/JPA/Migration/JBoss"

(New page: ==Migrating to JBoss using EclipseLink as JPA provider== *These instructions are for users wishing to migrate EclipseLink to the JBoss container as well as possibly migrating from another ...)
 
(Migrating to JBoss using EclipseLink as JPA provider)
Line 1: Line 1:
 
==Migrating to JBoss using EclipseLink as JPA provider==
 
==Migrating to JBoss using EclipseLink as JPA provider==
 
*These instructions are for users wishing to migrate EclipseLink to the JBoss container as well as possibly migrating from another persistence provider such as Hibernate.
 
*These instructions are for users wishing to migrate EclipseLink to the JBoss container as well as possibly migrating from another persistence provider such as Hibernate.
 
+
*There is an good example on jboss.org that we will use an example of how to migrate a small container managed web application from using Hibernate to using EclipeLink as the JPA provider.
There is an good example on jboss.org that we will use an example of how to migrate a small container managed web application from using Hibernate to using EclipeLink as the JPA provider.
+
*See the RedHat [http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.3/doc/Getting_Started/html-single/index.html#EJB3_Caveats JBoss EJB3 Example].
 
+
*See the JBoss EJB3 example [http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.3/gettingstarted.zip jsfejb3.ear] binary.
See the RedHat JBoss example documentation at:
+
[http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.3/doc/Getting_Started/html-single/index.html#EJB3_Caveats]
+
See the JBoss EJB3 example binary at:
+
[http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.3/gettingstarted.zip jsfejb3.ear]
+
  
 
==persistence.xml Modifications==
 
==persistence.xml Modifications==

Revision as of 16:26, 5 May 2008

Migrating to JBoss using EclipseLink as JPA provider

  • These instructions are for users wishing to migrate EclipseLink to the JBoss container as well as possibly migrating from another persistence provider such as Hibernate.
  • There is an good example on jboss.org that we will use an example of how to migrate a small container managed web application from using Hibernate to using EclipeLink as the JPA provider.
  • See the RedHat JBoss EJB3 Example.
  • See the JBoss EJB3 example jsfejb3.ear binary.

persistence.xml Modifications

  • The following changes must be done to persistence.xml

@EJB Injection/JNDI lookup Modifications

  • The @EJB injection annotation does not currently work outside of the EJB container - for example in the servlet container. The solution is to use a custom JNDI lookup.

EAR Packaging Modifications

  • Dynamic weaving (byte-code instrumentation) is not currently available in JBoss 4.2.2 because of [ JIRA EJBTHREE-572]. Our workaround is to statically weave the entities by running the following Ant task before creating your EJB jar during EAR packaging. You must use the statically weaved classes if you would like to use LAZY 1-1 and many-1 functionality.
  • See | JBoss predeploy workaround

Back to the top