users@glassfish.java.net

Re: propagate the user identity when calling a web service inside a servlet

From: Kumar Jayanti <Vbkumar.Jayanti_at_Sun.COM>
Date: Mon, 05 Apr 2010 14:22:02 +0530

Sarah kho wrote:
> Hi,
>
> i have a web service which is based on an ejb. in the same ear file i
> have a web application with a servlet which should invoke the ejb web
> service.
> my questions are:
>
> - how to enable authentication for the ejb based web service?
what kind of authentication do you wish to use for the EJB WebService ?.
> - if i authenticate a user using FORM authentication and then invoke a
> web service from inside a servlet, will servlet send the current user
> identity to EJB or i should tweak it manually?
>
yes it should.


>
> thanks.