Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324980 - need to add jpa test for setting toplink as default persistence provider on WebLogic server
Summary: need to add jpa test for setting toplink as default persistence provider on W...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-10 11:03 EDT by Yiping Zhao CLA
Modified: 2022-06-09 10:35 EDT (History)
1 user (show)

See Also:


Attachments
patch for verifing toplink as default persistence provider on weblogic (7.04 KB, patch)
2010-09-10 11:11 EDT, Yiping Zhao CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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