Bug 346335 - get jpa composite test models running on server
Summary: get jpa composite test models running on server
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: test
Depends on:
Blocks:
 
Reported: 2011-05-18 15:56 EDT by Yiping Zhao CLA
Modified: 2022-06-09 10:28 EDT (History)
0 users

See Also:


Attachments
patch for running jpa/composite tests on server (43.80 KB, patch)
2011-05-19 10:38 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 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