wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Container managed Entitymanager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Container managed Entitymanager " Watch "Container managed Entitymanager " New topic
Author

Container managed Entitymanager

dnyan ginde
Ranch Hand

Joined: Jan 17, 2006
Posts: 68
Hello,

Has anyone tried to obtain container managed EntityManager instance using JNDI lookup from a EJB 2.1 Session Bean on Websphere?
I could do this on JBoss by adding a property in persistence.xml file .
However, I couldn't figure out a way to do the same on Websphere 6.1.0.15 with EJB3 feature pack. Can someone guide me in this regard?

Regards,

Dnyanesh
dnyan ginde
Ranch Hand

Joined: Jan 17, 2006
Posts: 68
I am getting the following exception:



I have provided the correct value for the element in the persistence.xml to use Hibernate persistence.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Container managed Entitymanager