Bug 346335

Summary: get jpa composite test models running on 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 Keywords: test
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch for running jpa/composite tests on server none

Description Yiping Zhao CLA 2011-05-18 15:56:21 EDT
The changes are:

1. modify weblogic.xml by adding datasource2 and datasource3 info in <pass-weblogic-and-database-info> target, adding <weblogic-composite-setup> and <weblogic-composite-reset> to create/delete 3 different datasources, one is pointing to oracle, one is pointing to DB2, the last one is pointing to MySQL using wls_composite_setup.py and wls_composite_reset.py added under <eclipselink.jpa.test>\resource\weblogic

2. modify persistence.xml under <eclipselink.jpa.test>\resource\eclipselink-composite-advanced-model\server and <eclipselink.jpa.test>\resource\eclipselink-xml-composite-advanced-model\server by modifying ejb jar names, adding <%%datasource-type%%>%%data-source-name%%</%%datasource-type%%>

3. add 4 dirs under <eclipselink.jpa.test>\resource for xml extended model, which are "eclipselink-xml-extended-composite-advanced-model", "eclipselink-xml-extended-composite-advanced-model-member_1", "eclipselink-xml-extended-composite-advanced-model-member_2" and "eclipselink-xml-extended-composite-advanced-model-member_3", add "server" subdirectory under each new dir, copy persistence.xml from correspondent dirs under <eclipselink.jpa.test>\resource\eclipselinkorm

4. modify <eclipselink.jpa.test>/build.xml to add targets about how to build the composite ejb jars and model ear file in its specific way. 
(1). <server-test-composite-advanced> is for running org.eclipse.persistence.testing.tests.jpa.composite.advanced.EntityManagerJUnitTestSuite on server
(2). <server-test-xml-composite-advanced> is for running org.eclipse.persistence.testing.tests.jpa.xml.composite.advanced.EntityMappingsAdvancedJUnitTestCase with JPA ORM config on server
(3). <server-test-xml-extended-composite-advanced> is for running org.eclipse.persistence.testing.tests.jpa.xml.composite.advanced.EntityMappingsAdvancedJUnitTestCase with EclipseLink ORM config on server
Comment 1 Yiping Zhao CLA 2011-05-19 10:38:51 EDT
Created attachment 196116 [details]
patch for running jpa/composite tests on server
Comment 2 Yiping Zhao CLA 2011-05-19 15:32:00 EDT
changes hasve been checked in trunk as revision 9430, code is reviewed by Andrei Ilitchev and Kevin Yuan.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:28:48 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink