Without Book Ajukan Pertanyaan
Pertanyaan. Get javax.sql.DataSource from javax.persistence.EntityManager
- How is it possible to programmatically retrieve the underlying DataSource from an EntityManager?
Diposting Pada Jul 10, 2014 Diposting Oleh Abhi
Jawaban. @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.
Diposting Pada Jul 12, 2014 Diposting Oleh Lauren