This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 250477 - Examples: Update JBoss JPA EAR example tutorial in SVN
Summary: Examples: Update JBoss JPA EAR example tutorial in SVN
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Michael OBrien CLA
QA Contact:
URL: http://wiki.eclipse.org/EclipseLink/E...
Whiteboard:
Keywords:
Depends on: 252965 250473
Blocks: 249213 302449 302883 302884 309981
  Show dependency tree
 
Reported: 2008-10-10 14:31 EDT by Michael OBrien CLA
Modified: 2022-06-09 10:08 EDT (History)
3 users (show)

See Also:
michael.f.obrien: documentation+


Attachments
JBoss 5.1.0 or JBoss 6.0.0M1 JPA enterprise app (68.57 KB, patch)
2010-02-15 11:16 EST, Michael OBrien CLA
no flags Details | Diff
JPA 2.0 EAR application for JBoss 6.0.0M1 (34.43 KB, application/x-zip-compressed)
2010-02-15 11:20 EST, Michael OBrien CLA
no flags Details
JPA 1.0 EAR application for JBoss 5.1.0 (34.37 KB, application/x-zip-compressed)
2010-02-15 11:21 EST, 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:44 EDT
The 3 EAR, EJB and WEB Eclipse 3.4 projects used to write the JBoss JPA EAR
application (container 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/JBoss_Web_Tutorial

The example has been up for around 5 months with 2300 hits
Comment 1 Michael OBrien CLA 2009-02-24 12:06:03 EST
>Retest on JBoss 5.0 GA
>Retest SessionCustomizer requirement - looks like we no longer need it and are running fine on JBoss with COMPOSITE_NAME_LOOKUP
Comment 2 Tom Ware CLA 2009-04-16 11:05:31 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 2010-02-12 09:56:52 EST
>Results: on JBoss 6.0.0 M1 - JPA 2.0 XSD ok, JPA 2.0 API ok
>Pending: 
1) verify that shared-cache-mode>NONE</shared-cache-mode> - actually works and
does not just pass validation or relaxed validation - thanks Peter
2) dynamic weaving (instrumentation) - (need to disable the tempClassLoader) -
thanks Doug  - see bug 252965

See continuing discussion on the EclipseLink users newsgroup post bug 302449
http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg04116.html

>We need to reprioritize this enhancement request now that JBoss 6 is out
>post the ear containing the latest example tutorial
>update the wiki
Comment 4 Michael OBrien CLA 2010-02-15 10:18:40 EST
>preparing EAR and SVN (EAR,EJB,WAR) tutorial projects for checkin
>Wiki retrofit from JBoss 4.2.2 to JBoss 6.0.0M1 in progress
Comment 5 Michael OBrien CLA 2010-02-15 11:16:47 EST
Created attachment 159113 [details]
JBoss 5.1.0 or JBoss 6.0.0M1 JPA enterprise app

Note: remove DDL generation in persistence.xml after the first deployment
Note: The JPA 2.0 API will run on JBoss 6.0.0M1 (remove the entityManager.getMetamodel() call and revert the 2.0 XSD schema numbers to 1.0 in persistence.xml (and remove the JPA 2.0 schema test tag shared-cache-mode NONE)
- see the EAR attached to bug 302449 for a one with JPA 2.0 functionality removed (so we can run on JBoss 5.1.0)
Comment 6 Michael OBrien CLA 2010-02-15 11:20:15 EST
Created attachment 159114 [details]
JPA 2.0 EAR application for JBoss 6.0.0M1
Comment 7 Michael OBrien CLA 2010-02-15 11:21:02 EST
Created attachment 159115 [details]
JPA 1.0 EAR application for JBoss 5.1.0
Comment 8 Michael OBrien CLA 2010-02-15 11:45:03 EST
>See SVN rev# 6608
http://fisheye2.atlassian.com/changelog/eclipselink/?cs=6608

    The demo will run out of the box with the DefaultDS HQSL datasource provided you have copied eclipselink.jar to the \common\lib directory.
Comment 9 Michael OBrien CLA 2010-02-15 11:47:44 EST
>wiki content is being updated to JBoss 6.0.0 M1 configuration status
http://wiki.eclipse.org/EclipseLink/Examples/JPA/JBoss_Web_Tutorial
Comment 10 Michael OBrien CLA 2011-03-07 20:48:17 EST
>We need to answer the 2 questions in following user post from 20110303
http://community.jboss.org/message/590837?tstart=0
Comment 11 Eclipse Webmaster CLA 2022-06-09 10:08:25 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink