• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA EntityManager lookup failure in Websphere7 environment

 
Viji San
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am trying to look up JPA EntityManager in DAO class in Websphere Application Server 7 environment and getting JNDI Name not found exception. I have configured to use Hibernate as JPA Persistence Provider.

My DAO class is below:



I tried with below provider properties information as well, but, the exception does not disappear


Trying to access DAO method in the below class.




Persistence.xml is below:



Exception:




What JNDI URI needs to be used to lookup JPA EntityManager in Websphere environment?
 
K Mansoor
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you ever figure this one out?
 
Viji San
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I couldn't figure it out yet. As a work around, I implemented EAO in stateless bean, so, I am getting EntityManager through contain DI. Some thing like below,



Please let me know if you could find it out. Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic