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

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126008#4126008

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126008

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to