users@glassfish.java.net

Re: Can't lookup bean

From: <glassfish_at_javadesktop.org>
Date: Tue, 30 Oct 2007 05:58:51 PST

MyBeanImpl implements MyBean, not MyBeanImpl extends MyBean.

Do not look up inside JSFBean constructor. Do it in a @PostConstruct method.

Consider using injection in JSFBean
@EJB(beanName="MyBeanImpl")
private MyBean myBean;

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

http://forums.java.net/jive/thread.jspa?messageID=242906