Without Book Frage stellen
Review the question and existing answers carefully before replying. The best answers explain the reasoning, steps, and tradeoffs so other learners can benefit too.
Frage. Get javax.sql.DataSource from javax.persistence.EntityManager
- How is it possible to programmatically retrieve the underlying DataSource from an EntityManager?
Veroffentlicht am Jul 10, 2014 Veroffentlicht von Abhi
Antwort. @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.
Veroffentlicht am Jul 12, 2014 Veroffentlicht von Lauren