File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Convert JDBC Connection to EntityManager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Convert JDBC Connection to EntityManager" Watch "Convert JDBC Connection to EntityManager" New topic
Author

Convert JDBC Connection to EntityManager

sri ramvaithiyanathan
Ranch Hand

Joined: Nov 20, 2010
Posts: 109
Hi,

I am using SAP Server and sap maxdb as database.
While trying to create database connection using entitymanager I am getting following error



I dont know where I am going wrong.

Is there any way to convert jdbc connection to entity manager.

I tried using this way

but I am getting below error.





Regards,
Sriram.V


For java examples,ebooks,interview questions,visit this blog
http://periodicupdates.blogspot.com/
sri ramvaithiyanathan
Ranch Hand

Joined: Nov 20, 2010
Posts: 109
solved the problem by adding required jar file(eclipselink-2.0.0.jar and eclipselink-javax.persistence-2.0.jar)

Regards,
Sriram.V
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Convert JDBC Connection to EntityManager
 
Similar Threads
Entity in two persistence units
Transactional and Extended Scoped Persistence Context does not work as per spec.
Urgent !! why ? no suitable driver ???
How database info is specfied in persistence.xml
Problem in deploying BMP in Websphere 4.0