Without Book 질문하기
Review the question and existing answers carefully before replying. The best answers explain the reasoning, steps, and tradeoffs so other learners can benefit too.
질문. Get javax.sql.DataSource from javax.persistence.EntityManager
- How is it possible to programmatically retrieve the underlying DataSource from an EntityManager?
작성일 Jul 10, 2014 작성자 Abhi
답변. @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.
작성일 Jul 12, 2014 작성자 Lauren