aries-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Hanser <marcel.hanser.w...@googlemail.com>
Subject Attaching jpa persistence.xml via fragments to a persistence bundle
Date Mon, 20 Jun 2011 06:56:27 GMT
Hi,

i would like to attach a persistence.xml, or more percise parts of it,
to my jpa persistence bundle, since the concrete provider and DBMS
configuration should be chooseable without modify the persistence
bundle.
I scanned a the aries jpa code and found the
org.apache.aries.jpa.container.ManagedPersistenceUnitInfoFactory
plug-in point and also the
org.apache.aries.jpa.container.impl.PersistenceBundleHelper.locateFile(Bundle,
String) method. And now im wondering why using bundle.getEntry(String)
instead of bundle.getResource(String). Since fragments are not scanned
when using bundle.getEntry(String).
So is there already a way for doing that and i just missed it?

Thanks in advance.

Marcel Hanser

Mime
View raw message