Without Book Poser une question
Votre question. Get javax.sql.DataSource from javax.persistence.EntityManager
- How is it possible to programmatically retrieve the underlying DataSource from an EntityManager?
Publie le Jul 10, 2014 Publie par Abhi
Reponse. @Resource(name = "jdbc/...")
private DataSource dataSource;
Then providing the datasource as an argument to the API.
private DataSource dataSource;
Then providing the datasource as an argument to the API.
Publie le Jul 12, 2014 Publie par Lauren