JBoss Community

Re: JBoss AS 7.1.1.Final custom login module for remoting and custom principal

created by jingjing jiang in JBoss AS 7 Development - View the full discussion

I encouter a problem like this, sessionContext.getCallerPrincipal() always returns a SimplePrincipal instance, and its name is "anonymous", I expected that it would return a customed principal which implements the interface Principal.


At client side, I implement a LoginModule, in the method commit(), add a my own customed principal, then call the remote EJB.

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community