This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Simple JPA application on TOMEE" Watch "Simple JPA application on TOMEE" New topic

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

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Simple JPA application on TOMEE
It's not a secret anymore!