[
https://issues.apache.org/jira/browse/ARIES-964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tuomas Kiviaho updated ARIES-964:
---------------------------------
Attachment: PersistenceBundleManager.patch
This patch allows utilization of multiple persistence providers per bundle.
There was an artificial limit of one due probably because it was easier to
implement but I managed to create a fix in fully backwards compatible manner .
> Support for bundle fragments
> ----------------------------
>
> Key: ARIES-964
> URL: https://issues.apache.org/jira/browse/ARIES-964
> Project: Aries
> Issue Type: New Feature
> Components: JPA
> Reporter: Tuomas Kiviaho
> Attachments: PersistenceBundleHelper.java,
> PersistenceBundleHelper.java, PersistenceBundleManager.patch
>
>
> Currently it's possible to have both persistence.xml and Meta-Persistence:
> attribute declared on fragment bundle, but it's not very practical because
> PersistenceUnitInfo#getClassLoader() will return null causing providers to
> fall apart and there won't be any emf's available because the bundle stays at
> RESOLVED state.
> I tried to circumvent this by declaring Meta-Persistence: at fragment's host,
> but required a bit modification to
> PersistenceBundleHelper#findPersistenceXmlFiles to use
> BundleWiring#findEntries (when it's available)
--
This message was sent by Atlassian JIRA
(v6.1#6144)