[jboss-user] [EJB 3.0] - Re: Can't inject PersistenceContext, NullPointerException wh

2009-01-03 Thread TristanS
Oddly, I got it working by luck and I'm still tracking down what I did. I tried 
your suggestion (unitName=...) and that didn't work. But I did get it working 
using a JNDI lookup rather than injection (see 
http://forum.hibernate.org/viewtopic.php?p=2402399#2402399 for more details).

As and when I find out what I did, I'll post back in case someone else sees 
this in the future

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4199314#4199314

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4199314
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Can't inject PersistenceContext, NullPointerException wh

2008-12-31 Thread PeterJ
Try:

  @PersistenceContext(unitName = PrototypeCRMSystem-ejbPU)
  |   private EntityManager em;


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4199072#4199072

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4199072
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user