This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 250476 - Examples: Update Tomcat JPA WAR example tutorial in SVN
Summary: Examples: Update Tomcat JPA WAR example tutorial in SVN
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL: http://wiki.eclipse.org/EclipseLink/E...
Whiteboard:
Keywords:
Depends on: 250473
Blocks: 288249 309981
  Show dependency tree
 
Reported: 2008-10-10 14:31 EDT by Michael OBrien CLA
Modified: 2022-06-09 10:28 EDT (History)
1 user (show)

See Also:


Attachments
Tomcat example war non-JTA version (30.41 KB, application/x-zip-compressed)
2009-06-03 09:59 EDT, Michael OBrien CLA
no flags Details
Tomcat example eclipse ide project (non-JTA version) (57.76 KB, application/x-zip-compressed)
2009-06-03 10:00 EDT, Michael OBrien CLA
no flags Details
tomcat server.xml file (setup for non-JTA datasource access) (7.24 KB, text/xml)
2009-06-03 10:01 EDT, Michael OBrien CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael OBrien CLA 2008-10-10 14:31:40 EDT
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
Comment 1 Michael OBrien CLA 2008-11-07 16:25:24 EST
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
Comment 2 Tom Ware CLA 2009-04-16 11:05:28 EDT
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.
Comment 3 Michael OBrien CLA 2009-06-03 09:59:39 EDT
Created attachment 138154 [details]
Tomcat example war non-JTA version
Comment 4 Michael OBrien CLA 2009-06-03 10:00:23 EDT
Created attachment 138155 [details]
Tomcat example eclipse ide project (non-JTA version)
Comment 5 Michael OBrien CLA 2009-06-03 10:01:57 EDT
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
Comment 6 Michael OBrien CLA 2010-11-30 10:25:46 EST
>cancelled
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:28:45 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink