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