The figure shows how values in the configuration file for the Web Services Assembly tool are used to populate elements in the web.xml
file.
The configuration file contains these lines:
<web-service> <display-name>Employee Benefit Manager Web Service</display-name> <destination-path>build/empbft-ws.ear</destination-path> <temporary-directory>.</temporary-directory> <context>/employeebenefitmanager</context> <stateless-session-ejb-service> <path>build/empbft/empbft-ejb.jar</path> <!-- uri populates the url-pattern element in web.xml --> <uri>/Service</uri> <!-- ejb-name populates the ejb-ref-name element in web.xml --> <ejb-name>EmployeeBenefitManager</ejb-name> </stateless-session-ejb-service> </web-service>
The web.xml
file generated by the Web Services Assembly tool contains these lines:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app ... > <web-app> <servlet> <servlet-name>stateless session bean web service - EmployeeBenefitManager/Service</servlet-name> <servlet-class>oracle.j2ee.ws.SessionBeanRpcWebService</servlet-class> <init-param> <param-name>jndi-name</param-name> <param-value>EmployeeBenefitManager</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>stateless session bean web service - EmployeeBenefitManager/Service</servlet-name> <!-- value for url-pattern taken from uri element in config file --> <url-pattern>/Service</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> <ejb-ref> <!-- value for ejb-ref-name taken from ejb-name element in config file --> <ejb-ref-name>EmployeeBenefitManager</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>empbft.component.manager.ejb20.EmployeeBenefitManagerHome</home> <remote>empbft.component.manager.ejb20.EmployeeBenefitManager</remote> <ejb-link>EmployeeBenefitManager</ejb-link> </ejb-ref> </web-app>