• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JPA EntityManager lookup failure in Websphere7 environment

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you ever figure this one out?
 
Viji San
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic