Two Laptop Bag*
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 Android Security Essentials Live Lessons this week in the Android 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

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 agree. Here's the link:
subject: Simple JPA application on TOMEE
Similar Threads
Spring WEB MVC 3.0 using org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
packages and CLASSPATH
The "this" keyword and the constructor.
usage of "this"
how this program works i didn't understand