JBoss Community

Re: Every single remote ejb call starts full authentication process with SecurityDomain cache-type="default"

created by Gerson Samaniego in JBoss AS 7 Development - View the full discussion

I have my own SimplePrincipal and SimpleGroup classes. I solved the problem implementing equal method as it does JBoss in SimplePrincipal:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

if (!(another instanceof

Principal)) {

 

 

     return false

;

}

 

 

String anotherName = ((Principal) another).getName();

 

 

 

boolean equals = false;

 

 

 

if (name == null){

     equals = anotherName ==

null;

}

else

{

equals =

name.equals(anotherName);

}

 

 

return equals;

 



Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community