Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Simple JPA application on TOMEE  RSS feed

 
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....
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!