Most asked top Interview Questions and Answers | Online Test | Mock Test
Education platform for interview prep, online tests, tutorials, and live practice

Build skills with focused learning paths, mock tests, and interview-ready content.

WithoutBook brings subject-wise interview questions, online practice tests, tutorials, and comparison guides into one responsive learning workspace.

Search the library
Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

WithoutBook Forum

Ques. Get javax.sql.DataSource from javax.persistence.EntityManager

- How is it possible to programmatically retrieve the underlying DataSource from an EntityManager?

Posted on Jul 10, 2014 by Abhi
Ans. @Resource(name = "jdbc/...")
private DataSource dataSource;

Then providing the datasource as an argument to the API.
Posted on Jul 12, 2014 by Lauren

Enter your Answer

Name
Email Address
Answer
Security Check
Solve this to continue: 4 + 4 = ?
©2026 WithoutBook