Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324980

Summary: need to add jpa test for setting toplink as default persistence provider on WebLogic server
Product: z_Archived Reporter: Yiping Zhao <yiping.zhao>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: michael.f.obrien
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch for verifing toplink as default persistence provider on weblogic none

Description Yiping Zhao CLA 2010-09-10 11:03:43 EDT
Right now toplink is not default persistence provider in weblogic, but we can set is as default persistence provider when configuring the domain. Here we will config the domain to use toplink as default provider, run jpa/advanced model without <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> in persistence.xml, after that config the domain back to use kodo as provider.

The changes will be:

1. create new dir "eclipselink-domaintest-advanced-model" under eclipselink.jpa.test/resource to have advanced model's persistence.xml without <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> entry

2. in eclipselink.jpa.test/build.xml, 
(1) add <server-domain-setup> and <server-domain-reset> to config weblogic doamin to use toplink as provider, to config weblogic domain back to use kodo as provider
(2). add <server-domain-test-advanced> target as for running advanced model without <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> in persistence.xml

3. in eclipselink.jpa.test/weblogic.xml, add <weblogic-domain-setup> and <weblogic-domain-reset> targets to config weblogic domain using toplink and kodo as default persistence provider
Comment 1 Yiping Zhao CLA 2010-09-10 11:11:28 EDT
Created attachment 178619 [details]
patch for verifing toplink as default persistence provider on weblogic
Comment 2 Yiping Zhao CLA 2010-09-10 15:30:51 EDT
The patch has been changed to remove <server-domain-setup> and <server-domain-reset> targets in build.xml, add "set.eclipselink.as.provider" in weblogic.properties, nest <weblogic-domain-setup> and <weblogic-domain-reset> to <weblogic-setup> and <weblogic-reset> targets.

The changes haven been checked in main as revision 8161.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:35:50 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink