| Author |
JPA EntityManager lookup failure in Websphere7 environment
|
Viji San
Ranch Hand
Joined: Aug 12, 2010
Posts: 35
|
|
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
Joined: Jan 10, 2006
Posts: 52
|
|
|
Did you ever figure this one out?
|
 |
Viji San
Ranch Hand
Joined: Aug 12, 2010
Posts: 35
|
|
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
|
 |
 |
|
|
subject: JPA EntityManager lookup failure in Websphere7 environment
|
|
|