users@glassfish.java.net

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

From: Sarah kho <sarah.kho_at_gmail.com>
Date: Mon, 5 Apr 2010 12:40:10 +0430

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?
- 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?


thanks.