I have found one mistake.
I have used the constructor from GetUserName to use the class. I have changed this and now
i use the lookup:
| InitialContext ic = new InitialContext();
| GetUserNameLocal getUsername = (GetUserNameLocal)
ic.lookup("GetUserName/local");
| userName = getUsername.getUserName();
|
Now I get no exception.
But the the username is not the user that is logged on the session. I get
"anonymous".
Why?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4212533#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...