[jboss-user] [EJB 3.0] - Re: Storing user info on server

roeladriaensens do-not-reply at jboss.com
Fri Mar 7 03:47:37 EST 2008

What about simply using a custom principal on server side, one that contains your user information? This works perfectly, even with stateless session beans, since the principal information is stored in the authentication cache between the server calls.
You can easily access the custom principal via the SessionContext.getCallerPrincipal() method.

more info on using a custom principal can be found on the wiki:

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134768#4134768

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134768

More information about the jboss-user mailing list