| Summary: | Enable weaving for persistence units with non-default persistence xml location | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Tom Ware <tom.ware> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipselink.orm-inbox, foerster, SebTardif | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Tom Ware
Created attachment 167324 [details]
proposed changes
These updates allow you to use the eclipselink.persistencexml property to specify the location of persitence.xml and enable weaving.
For Dynamic weaving with the java agent this must be specified as a system property since we will not be able to find the persistence.xml without the property. (i.e. you are still required to have a single location and name for persistence.xml within all your persistence units.)
Checked in fix. Reviewed by Chris Delahunt Tested manually. eclipselink.persistence.xml property must be provided to enable this to work Limitations: 1. When using with agent-based dynamic weaving this property may only define a single location and therefore all persistence units must use that location 2. Java EE servers will still follow the specification (and look for META-INF/persistence.xml), so when using an alternate persistence.xml location, you will not be able to use injection, and you will not get dynamic weaving 3. You will have to specify the location of the persistence.xml file using the -persistencexml argument when using the static weaver (or ther persistencexml attribute in the ant tast) Additional Limitation. persistencexml must be a location contained within the base persistence unit location. i.e. don't use ".." in the persitence unit location. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |