1 Reply Latest reply on Apr 27, 2006 9:01 AM by liudan2005

    Session scoped listener works in Firefox but not in IE

    liudan2005

      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"));
       }
      
      }