This content has been marked as final.
Show 1 reply
-
1. Re: JAAS LoginModule as source of DB conn creds?
stevemaring Oct 21, 2011 3:42 PM (in response to stevemaring)I tried this ....
@PersistenceUnit(name="myPU")
private EntityManagerFactory emf;
Properties map = new Properties();
map.put("hibernate.connection.username", "myuser");
map.put("hibernate.connection.password", "mypass");
EntityManager entityManager = emf.createEntityManager(map);
but I got a runtime error of ...
java.sql.SQLException: Invalid Oracle URL specified
which makes me think that it is now ignoring my xa-datasource