users@glassfish.java.net

Re: GFv3 ACC and LoginContext

From: Kumar Jayanti <Vbkumar.Jayanti_at_Sun.COM>
Date: Thu, 20 May 2010 17:18:30 +0530

glassfish_at_javadesktop.org wrote:
> Hi,
>
>
> I called LoginContext.login and that did not throw an exception, thus it was OK,
> but when I called the first InitalContext.lookup that did not know from LoginContext.login and forced a new one!
>
> Why, and how do I joined InitalContext and LoginContext to eachother ?
>
>
You should use ProgrammaticLogin instead before the lookup.
> Thanks, Attila.
>