See the glassfish documentation for details.
https://glassfish.dev.java.net/javaee5/docs/DG/beabg.html#beabr
Specifically for web application, login-config element in web.xml has
the realm-name element as shown below.
<web-app>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>realm1</realm-name>
<login-config>
</web-app>
Thanks
Harsha
Legolas Woodland wrote, On Tuesday 27 November 2007 03:43 PM:
> Hi
> thank you for reading my post
> How I can configure web application to use a realm like realm1 to
> authenticate users?
> what i can not understand is what kind of configuration we should
> perform in web.xml or sun-web.xml to say the web application to use a
> prticular realm for authentication.
>
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>