[jboss-dev-forums] [JBoss AS 7 Development] - Re: Every single remote ejb call starts full authentication process with SecurityDomain cache-type="default"
Gerson Samaniego
do-not-reply at jboss.com
Thu Oct 4 14:26:47 EDT 2012
Gerson Samaniego [https://community.jboss.org/people/gersonjohan] created the discussion
"Re: Every single remote ejb call starts full authentication process with SecurityDomain cache-type="default""
To view the discussion, visit: https://community.jboss.org/message/763308#763308
--------------------------------------------------------------
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
[https://community.jboss.org/message/763308#763308]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121004/d97dd80a/attachment.html
More information about the jboss-dev-forums
mailing list