You have to login on every request.

----- Original Message -----
From: "Andy Comley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 04, 2001 1:11 AM
Subject: [JBoss-user] Cacheing LoginContext objects


> I have all the JAAS security working within a J2EE application with both a
> web component and a ejb component. In order to authenticate a user to the
> application, I have a login JSP where the user enters the login name and
> password. In the web application, this information is then used to create
a
> LoginContext in order to access the ejb component - this works great.
> However, the next request from the same user does not have the principal
> set.
>
> My question is, do I have to log that user in on every request in order to
> set the right LoginContext, or can I cache the LoginContext from the
initial
> login in the user's web session and somehow dynamically set it for
> subsequent ejb calls derived from future requests?
>
> thanks in advance,
> Andy
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to