Yes,If I don't call the identitiy.login,the thing is ok.That's why I think identity.login reset the session. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090488#4090488 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090488