[jboss-user] [JBoss Seam] - lost injected entity bean
kitada21
do-not-reply at jboss.com
Mon Feb 4 01:48:42 EST 2008
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
More information about the jboss-user
mailing list