This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 309201 - EclipseLink on WebSphere 7: Container Managed and Application Managed EntityManager scenarios
Summary: EclipseLink on WebSphere 7: Container Managed and Application Managed EntityM...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (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:
Blocks: 261671 308477 309730 309975
  Show dependency tree
 
Reported: 2010-04-14 15:31 EDT by Michael OBrien CLA
Modified: 2022-06-09 10:30 EDT (History)
1 user (show)

See Also:
michael.f.obrien: documentation+


Attachments
EAR for a container managed @PersistenceContext injection on a stateless session bean of a eclipselink jpa deployment - servlet based: ear requires replacement of EAR/app-inf/lib/eclipselink.jar (25.66 KB, application/x-zip-compressed)
2010-04-19 15:25 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 2010-04-14 15:31:19 EDT
>The tutorial on the different methods of what architectures involving EclipseLink on WebSphere 7 needs to be updated.
- start with scenarios that modifiy the server like creating a global shared library and end with EAR based eclipselink libraries that are solely in the control of the developer.
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebSphere_Web_Tutorial#Global_Scoped_Datasource_Setup

- Container Managed - @PersistenceContext injection on stateless session bean or servlet via @EJB injection
- Application managed  - via Persistence.createEntityManagerFactory() static bootstrap
- verify whether dynamic weaving is enabled in both CM and AM cases
- verify JPA 2.0 functionality and how a mixed JPA 1.0/JPA 2.0 production system functions
Comment 1 Michael OBrien CLA 2010-04-14 22:02:57 EDT
>Bug # 261671 may benefit from different classloader levels during this investigation
Comment 2 Michael OBrien CLA 2010-04-16 08:53:26 EDT
>Also verify (bug# 246126 like) javax.persistence.jtaDataSource override for application managed EARs
Comment 3 Michael OBrien CLA 2010-04-19 15:25:20 EDT
Created attachment 165341 [details]
EAR for a container managed @PersistenceContext injection on a stateless session bean of a eclipselink jpa deployment - servlet based: ear requires replacement of EAR/app-inf/lib/eclipselink.jar

>The following EAR will deploy a container managed persistence unit
Note: because of upload attachment limitations - I have temp removed the eclipselink.jar from the EAR in org.eclipse.persistence.example.jpa.server.websphere.EnterpriseEAR\APP-INF\lib\eclipselink.jar
- you need to add this or a newer eclipselink.jar library back and repackage the EAR.

>URL
http://127.0.0.1:9080/enterprise/FrontController?action=demo&rnd=.04393939420

>prepopulate the database with the following SE JPA ddl-gen persistence unit app
http://dev.eclipse.org/svnroot/rt/org.eclipse.persistence/trunk/examples/org.eclipse.persistence.example.jpa.server.common.ddlgen/

>Documentation
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebSphere7_Web_Tutorial#Container_Managed_EclipseLink_library_in_EAR
Comment 4 Michael OBrien CLA 2010-04-20 11:00:47 EDT
>closing down this bug and wiki edits - as the 3 container managed scenarios are prototyped, documented and working for eclipselink JPA on WebSphere 7
>we can reopen this bug if application managed scenarios require expansion.

>no server modification
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebSphere7_Web_Tutorial#Container_Managed_EclipseLink_library_in_EAR

>server modifications required
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebSphere7_Web_Tutorial#EclipseLink_library_in_Server.2Flib
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebSphere7_Web_Tutorial#EclipseLink_library_as_Global_Shared_Library
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:30:30 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink