This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Simple JPA application on TOMEE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Simple JPA application on TOMEE" Watch "Simple JPA application on TOMEE" New topic
Author

Simple JPA application on TOMEE

Prajakta Acharya
Ranch Hand

Joined: Nov 08, 2012
Posts: 138

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....

Regards,
Prajakta
 
 
subject: Simple JPA application on TOMEE
 
It's not a secret anymore!