<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>

<web-app>
    <distributable/>
    <servlet>
      <servlet-name>stateless session bean web service - AppSessionFacade/service</servlet-name>
      <servlet-class>oracle.j2ee.ws.SessionBeanRpcWebService</servlet-class>
      <init-param>
        <param-name>jndi-name</param-name>
        <param-value>AppSessionFacade</param-value>
      </init-param>
    </servlet>

    <servlet-mapping>
      <servlet-name>stateless session bean web service - AppSessionFacade/service</servlet-name>
      <url-pattern>/service</url-pattern>
    </servlet-mapping>

    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
    </welcome-file-list>

    <ejb-ref>
      <ejb-ref-name>AppSessionFacade</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      <home>faqapp.AppSessionFacadeHome</home>
      <remote>faqapp.AppSessionFacade</remote>
      <ejb-link>AppSessionFacade</ejb-link>
    </ejb-ref>

    <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>faqrealm</realm-name>
    </login-config>
    <security-role>
        <role-name>FAQRole</role-name>
    </security-role>
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>web service servlet</web-resource-name>
            <url-pattern>*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>FAQRole</role-name>
        </auth-constraint>
    </security-constraint>
</web-app>
