• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple JPA application on TOMEE

 
Prajakta Acharya
Ranch Hand
Posts: 138
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I am trying to run a simple JPA application on TOMEE.
I have an EJB which gets reference to EntityManager using annotation. I could successfully look-up EJB and invoke its method, but 'EntityManager' is not getting injected.
This is what I have done:
1) EJB code:


2) Persistence.xml


Any idea/input would be very helpful....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic