This discussion is archived
3 Replies Latest reply: Oct 24, 2011 4:16 AM by gimbal2 RSS

PersistenceUnit injection inside servlet running tomcat 6?????

744624 Newbie
Currently Being Moderated
hi..

i've tried all possible combinations,

public class Starter extends HttpServlet {
private static final long serialVersionUID = 1L;
@PersistenceUnit
EntityManagerFactory hr;
all i wanna do is get an injected EntityManagerFactory, and it keeps getting ignored completely.
my resource type is local not jta (it is tomcat after all)

anyway i can get a sample of it running?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points