JBoss Community

Re: JAAS LoginModule as source of DB conn creds?

created by Steve Maring in Datasource Configuration - View the full discussion

 

 

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");

 

 

 

E#ntityManager 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

);

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community