This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Meteor in Action and have Stephan Hochhaus & Manuel Schoebel on-line!
See this thread for details.
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 Meteor in Action this week in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Container managed Entitymanager " Watch "Container managed Entitymanager " New topic

Container managed Entitymanager

dnyan ginde
Ranch Hand

Joined: Jan 17, 2006
Posts: 68

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 with EJB3 feature pack. Can someone guide me in this regard?


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.
I agree. Here's the link:
subject: Container managed Entitymanager