[jboss-user] [EJB 3.0] - @EJB does not work in JSF backing bean constructor
do-not-reply at jboss.com
Wed Feb 4 10:23:56 EST 2009
I have a situation where I use @EJB annotation in a JSF backing bean and sometimes it is null and other time it is not.
I am converting an application from jboss-eap-4.3 to jboss-5.0.0.GA. In 4.3 I used JNDI lookup.
The problem was the injected reference to the stateless session bean was being called one time from inside the constructor for the backing bean. That is when it would be NULL. All other references worked fine.
Is that correct behavior?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207013#4207013
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207013
More information about the jboss-user