This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 309981 - Examples: submit common consolidated <jar-file> entities.jar for all WebLogic, WebSphere, JBoss, Glassfish, OC4J and SE DDL project persistence units
Summary: Examples: submit common consolidated <jar-file> entities.jar for all WebLogic...
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL: http://eclipsejpa.org
Whiteboard:
Keywords:
Depends on: 211206 249541 250475 250476 250477 260473 309975 322287
Blocks: 322288 322289
  Show dependency tree
 
Reported: 2010-04-21 11:14 EDT by Michael OBrien CLA
Modified: 2022-06-09 10:31 EDT (History)
2 users (show)

See Also:
michael.f.obrien: documentation+


Attachments
Common entities.jar <jar-file> for persistence.xml for all WebSphere, WebLogic, OC4J, JBoss and SE DDL example projects (13.03 KB, patch)
2010-04-21 11:18 EDT, Michael OBrien CLA
no flags Details | Diff
Common entities.jar <jar-file> for persistence.xml for all WebSphere, WebLogic, OC4J, JBoss and SE DDL example projects (28.26 KB, patch)
2010-09-13 15:39 EDT, Michael OBrien CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael OBrien CLA 2010-04-21 11:14:59 EDT
>Currently the same object model is duplicated among all the EJB project for WebSphere, JBoss, WebLogic, OC4J and the SE DDL generation project

>this will require a small persistence.xml and .project .classpath refactor for all existing EAR tutorials in SVN

- We move these entities to an entity only jar project
- We reference the jar in the EAR JEE dependencies
- We select the project in the EJB project dependency - adding it to the MANIFEST.MF as
Class-Path: org.eclipse.persistence.example.jpa.server.entities.jar
- We optionally reference the jar in the persistence.xml for each ejb project
<jar-file>org.eclipse.persistence.example.jpa.server.entities.jar</jar-file>
Comment 1 Michael OBrien CLA 2010-04-21 11:18:23 EDT
Created attachment 165586 [details]
Common entities.jar <jar-file> for persistence.xml for all WebSphere, WebLogic, OC4J, JBoss and SE DDL example projects
Comment 2 Michael OBrien CLA 2010-08-10 15:46:02 EDT
>prototyped - however there may be issues with the target-server tag for various EE servers
- using 2 levels of persistence.xml
Comment 3 Michael OBrien CLA 2010-08-16 09:41:25 EDT
>For WAR only EAR's on GlassFish V3 - this may be the only way the persistence unit is parsed by the web container (separate entity jar) - to verify
Comment 4 Michael OBrien CLA 2010-08-24 16:57:52 EDT
>WebLogic EAR with (ejb.jar (SSB only and persistence.xml), WAR and entity.jar (entities only)) running on WebLogic 10.3.3.0
Comment 5 Michael OBrien CLA 2010-09-13 15:39:07 EDT
Created attachment 178770 [details]
Common entities.jar <jar-file> for persistence.xml for all WebSphere, WebLogic, OC4J, JBoss and SE DDL example projects
Comment 6 Michael OBrien CLA 2010-09-13 16:05:40 EDT
>See SVN rev# 8171 containing common entities project and EAR changes for WebLogic
https://fisheye2.atlassian.com/changelog/eclipselink/?cs=8171
- JBoss, WebSphere, OC4J, Glassfish pending
- improved client and datamodel pending
Comment 7 Michael OBrien CLA 2010-11-30 09:59:04 EST
>cancelled
Comment 8 Eclipse Webmaster CLA 2022-06-09 10:16:57 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 9 Eclipse Webmaster CLA 2022-06-09 10:31:32 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink