aspose file tools*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple JPA application on TOMEE