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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...