Community
Participate
Working Groups
The WEB Eclipse 3.4 project used to write the Tomcat 6 JPA WAR (application managed) tutorial will be checked in and updated against this enhancement request. DDL Schema Generation: All the application server tutorials for EclipseLink use a common shared data model (currently using a single @ManyToMany for simplicity). To aide in database schema setup, the enhancement bug# 250473 contains the [org.eclipse.persistence.example.jpa.server.common] Java SE application that performs DDL generation for all JPA container tutorials. Tutorial Design: The goal of the tutorial is to demonstrate a quick start end-to-end deployment on a specific application server of an EclipseLink JPA application. To accomplish this... - The web framework is a simple servlet so we avoid container specific issues around JSF implementation. - The data model is very simple (@ManyToMany) - as the other tutorials get into more advanced JPA entity concepts and annoations - The entitymanager is container managed where possible by injection - The schema is generated by DDL generation in a separate common application managed SE app. - The application context name is standard across servers - The datasource is globally defined (by the user) on the server - with the only configuration setting being the jta-data-source element in persistence.xml see http://wiki.eclipse.org/EclipseLink/Examples/JPA/Tomcat_Web_Tutorial The example has been up for around 2 months with 1400 hits
Note: Use of a JTA datasource only works when Tomcat 6.0.18 is run as a service Update the following sites when the source is in SVN: http://wiki.eclipse.org/EclipseLink/Examples/JPA/Tomcat_Web_Tutorial http://weblogs.java.net/blog/lancea/archive/2008/11/moving_tomcat_t_1.html
Updating priority due to revised bug categorization process. See the following page for details: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines#Priority_and_Target_Milestone If you feel the updated priority is incorrect, please send an email to eclipselink-users@eclipse.org.
Created attachment 138154 [details] Tomcat example war non-JTA version
Created attachment 138155 [details] Tomcat example eclipse ide project (non-JTA version)
Created attachment 138156 [details] tomcat server.xml file (setup for non-JTA datasource access) The three patches above match changes done on 20090601 to support non-JTA datasource access in the tomcat war against a version of EclipseLink on the server's lib directory
>cancelled
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink