[jboss-user] [EJB 3.0] - Re: EntityManager Injection, Null Pointer Exception. (Sorry.

jaikiran do-not-reply at jboss.com
Wed Jun 18 07:54:51 EDT 2008


anonymous wrote : PrStaffHome prStaffHome = new PrStaffHome();

This is incorrect. You should not be instantiating a EJB in your code. Instead you should be doing a "lookup" of the bean. See my reply dated Mon May 26, 2008 11:02 AM in one other similar post at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=136213

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158957#4158957

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158957



More information about the jboss-user mailing list