Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Container managed Entitymanager

 
dnyan ginde
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the following exception:



I have provided the correct value for the element in the persistence.xml to use Hibernate persistence.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic