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