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

Bug 311234

Summary: Update Archive hierarchy to allow persitence units with alternate persistence.xml locations
Product: z_Archived Reporter: Tom Ware <tom.ware>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipselink.orm-inbox, michael.keith
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 307105    
Attachments:
Description Flags
Suggested changes none

Description Tom Ware CLA 2010-04-30 15:26:31 EDT
Currently our Archive hierarchy.  (org.eclispe.persistence.jpa.Archive and it's implementers) assumes that the persistence.xml is called META-INF/persistence.xml.

We should update the hierarchy to accept persistence.xml files in other directories and xml files with different names.

This is useful for, amount other things, allowing EclipseLInk to work with the OSGi structures defined in the gemini project.
Comment 1 Tom Ware CLA 2010-04-30 15:27:33 EDT
Created attachment 166666 [details]
Suggested changes
Comment 2 Tom Ware CLA 2010-05-03 11:08:51 EDT
This change updates our archive framework to be aware of where the persistence descriptor is and, hence allow persistence descriptors other than META-INF/persistence.xml.  These changes are the first in a set of changes that will allow EclipseLink to run with Gemini.

Tested by running EclipseLink Core and JPA tests both within Eclipse and from ant, also tested with the gemini tests within Eclipse

Reviewed by Peter Krogh
Comment 3 Tom Ware CLA 2010-05-06 10:59:17 EDT
*** Bug 303078 has been marked as a duplicate of this bug. ***
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:32:08 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink