Thanks Willem for your response;

As i'm not on ServiceMix, but i'm directly on a Felix, i don't have
servicemix-jpa bundle.
So i searched the servicemix sources a littlebit and i found the openjpa,
when i looked its code it implements SynchronousBundleListener  which means
it listens for every bundle coming on the framework and reads its
META-INF/persistency.xml. 

So if i just deploy openjpa, you think it's going to work and i will have my
jpa config ready to use by camel jpa endpoint?






kodcanavari wrote:
> 
> Hi,
> 
> Actually i'm developping camel routes under OSGi, so i create bundles and
> deploy them onto a OSGi framework with camel-core bundles on it.
> Everything is ok but:
> 
> I neet to use the JPA component in order to map an entity bean to the
> database, but i don't know were to put the persistency.xml. Is there any
> way to tell it by a programmatic way ? If not where can i put it?
> 
> Thanks.
> 

-- 
View this message in context: 
http://www.nabble.com/Jpa-component%2C-persistency.xml-location-tp25946344p25951702.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to