You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Jean-Louis MONTEIRO <je...@atosorigin.com> on 2009/03/02 12:01:51 UTC

Re: LocalInitialContext and SecurityService collaboration


David Blevins wrote:
> 
> 
>> As far as I can see, the LocalInitialContext invokes the  
>> SecurityService
>> login during the context creation.
>> But I can not see the SecurityService logout call during the logout  
>> (invoked
>> from close method) invocation of the LocalInitialContext.
>>
>> Is it a deliberated choice ?
>> It seems a little stange.
> 
> Not sure I follow.  If you could elaborate that'd be great.
> 
> 
>From my point of view, it's not consistent.
The #login() method:
- delegates the login to the SecurityService
- sets the static identity in ClientSecurity

The #logout() method:
- sets to null the static identity in the ClientSecurity

It should call the logout of the SecurityService.

-- 
View this message in context: http://www.nabble.com/LocalInitialContext-and-SecurityService-collaboration-tp22179911p22286077.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.