I have a session scoped component with @Startup annotation to listen to the session event. When use firefox, everything works fine. but when use IE to browse my page, it prints thousands message on jboss console (there's a dead loop). Here is my code.
@Name("mySessionListener") @Scope(ScopeType.SESSION) @Startup public class MyBean { @Create public void init(){ System.out.println("******* init() ****"); HttpSession session=((HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getSession(); session.setAttribute("key","hello" ); System.out.println(session.getAttribute("key")); } }
This problem is still there in RC2.