wood burning stoves 2.0*
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
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
 
 
subject: Convert JDBC Connection to EntityManager