[jboss-user] [Security & JAAS/JBoss] - Re: getCallerPrincipal().getName() cached? with JBoss 5.0.0.

ragavgomatam do-not-reply at jboss.com
Tue Jan 20 20:57:20 EST 2009

I suppose you are doing LoginContext.login() 
from your client. After login, you must be invoking methods on a secured ejb. Did you check, if you are calling LoginContext.logout() ?
after completing the call

Also try setting "DefaultCacheTimeout" in the jboss-service.xml to 0. Try & see if it helps. Besides I am quite sure that it is not guaranteed by ejb container vendors to return different instances of stateless ejb's between different invocations. So, don't expect different stateless instances to be returned for different client invocations. You could be getting the same underlying instance. So don't programme expecting different instances to be returned.

Yes, you can tinker around with the ejb pool. Be cautious whilst you do that

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

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

More information about the jboss-user mailing list