Yes.
BTW, there is an OSGi unit test[1] which tests the openjpa and camel-jpa bundle.

[1] /Users/jiangning/Work/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/jpa/JpaRouteTest.java

Willem


kodcanavari wrote:
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.



Reply via email to