Hi,
There is the DataSource.getConnection(username, password) but when using JPA, is there any way of doing a run-time change of the database user?
EntityManagerFactory has a setPersistenceUnitProperties(Map) but that is probably at too high a level(?)