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#4212533

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212533
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to