Without Book 質問する
質問. 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