[jboss-user] [EJB 3.0] - Re: EntityManager is null
ALRubinger
do-not-reply at jboss.com
Fri Feb 15 11:26:46 EST 2008
VPInfoDAOImpl vpdao = VPInfoDAOImpl.getInstance();
This won't work; here you are constructing a plain object, not accessing an EJB instance from the container.
InitialContext ctx = new InitialContext();
| VPInfoDAOLocal dao = (VPInfoDAOLocal) ctx.lookup("VPInfoDB/VpInfoDAOBean/local");
What's not working here? Are you able to perform the lookup, cast, and invoke?
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129704#4129704
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129704
More information about the jboss-user
mailing list