When switching to the vanilla DataSourceFactory the error disappears but now
when I try to access the entity manager from the JPAEntityManagerProvider it
throws this error:
/Unable to acquire a connection from driver [null], user [null] and URL
[null]. Verify that you have set the expected driver class and URL. Check
your login, persistence.xml or sessions.xml resource. The jdbc.driver
property should be set to a class that is compatible with your database
platform./
Please correct me if my understanding is wrong. Because I have specified all
the necessary properties in the
org.apache.aries.tx.controljpa.xa-example.cfg I can simply get the
JPAEntityManagerProvider with empty maps, like this:
JPAEntityManagerProvider jpaProvider =
entityManagerProviderFactory.getProviderFor(
emfBuilder,
new HashMap<String, Object>(), //This would be additional jdbc
properties
new HashMap<String, Object>() //This would be additional jpa properties
);
Am I missing something?
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html