Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 240993 - Need to Add Support for Running JPA Tests on JBoss
Summary: Need to Add Support for Running JPA Tests on JBoss
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 227707 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-15 16:45 EDT by Kevin Yuan CLA
Modified: 2022-06-09 10:29 EDT (History)
2 users (show)

See Also:


Attachments
patch for the bug (22.93 KB, patch)
2008-07-18 12:37 EDT, Kevin Yuan CLA
no flags Details | Diff
patch for the bug based on some feedback (19.01 KB, patch)
2008-07-18 14:30 EDT, Kevin Yuan CLA
peter.krogh: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2008-07-15 16:45:23 EDT
The following changes are required in order to run JPA testing on JBoss:

1. Add jboss.properties and jboss.xml under
trunk\jpa\eclipselink.jpa.test to provide testing environment properties and targets for install, start/stop server, config server and deploy/undeploy applications on JBoss application server.

2. Add persistence.xml for each test suiteand put it under jboss dir because jboss has different jndi name for data-source, e.g  trunk\jpa\eclipselink.jpa.test\resource\eclipselink-sessionbean-model\server\jboss\persistence.xml.
   Modify trunk\jpa\eclipselink.jpa.test\build.xml within "server-build-ejb-jar" target, make sure use correct persistence.xml (under jboss dir).

3. Add jboss dir under trunk\jpa\eclipselink.jpa.test\resource, and put 
data source xml under this dir, e.g. oracle-ds.xml.
Comment 1 Michael OBrien CLA 2008-07-15 16:50:13 EDT
*** Bug 227707 has been marked as a duplicate of this bug. ***
Comment 2 Kevin Yuan CLA 2008-07-18 12:37:00 EDT
Created attachment 107843 [details]
patch for the bug
Comment 3 Kevin Yuan CLA 2008-07-18 14:30:13 EDT
Created attachment 107851 [details]
patch for the bug based on some feedback

Based on some feedback, there are the following changes:
- Clean up all ${db.name}-ds.xml, remove some comments;
- Remove <property file="./test.properties"/> in jboss.xml, it had been already loaded in build.xml;
- Remove <chmod dir="${jboss.server}/deploy" perm="ugo+w" includes="*.xml"/> in jboss.xml.
Comment 4 Edwin Tang CLA 2008-07-21 10:52:33 EDT
The patch has been checked in both the trunk and 1.0.1 branch. 
Code Reviewed by: Edwin Tang
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:29:29 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink