2 Replies Latest reply on Feb 4, 2008 11:22 PM by Motoki Kitada

    lost injected entity bean

    Motoki Kitada Newbie

      When multiple access, lost injected entity bean.

      1.currentUser not null

      if(currentUser == null){

      2.currentUser not null

      log.debug("■standardPageAction:" + currentUser.getUserId());

      3.currentUser is null

      String retPage = userEvent(currentUser.getUserId());

      What's happened.

      I'm using Seam 2.0.0.GA, JBossAS 4.2.0.CP1.

      Best Regards.

      @Name("coordinator")
      @Scope(APPLICATION)
      public class Coordinator {
       @Logger
       Log log;
      
       @In(scope=SESSION,required=false)
       User currentUser;
      
       @In(scope=SESSION,required=false)
       Identity identity;
      
       private static HashMap<String, String> hmUserEvent = new HashMap<String, String>();
      
       public String standardPageAction(){
       log.info("standardPageAction");
      
       if(currentUser == null){
       log.debug("■standardPageAction:no login");
       if(identity != null) identity.logout();
       return "";
       }
      
       log.debug("■standardPageAction:" + currentUser.getUserId());
      
       String retPage = userEvent(currentUser.getUserId());
      
       return retPage;
       }