esb mule web.xml配置

<?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>
    <display-name>Mule</display-name>
    <description>Mule Web App Samples</description>

<!-- mule的配置文件路径 -->
    <context-param>
        <param-name>org.mule.config</param-name>
        <param-value>
        org/mule/example/echo/config/echo-config.xml,
        org/mule/example/hello/config/hello-http-config.xml,
        org/mule/example/rest/config/servlet-config.xml,
            jmx-config.xml,
            stockquote-rest-config.xml,
            loan-broker-sync-config.xml,
            loan-broker-axis-endpoints-config.xml,
            org/mule/example/xfire/config/mule-services-config.xml
        </param-value>
    </context-param>

    <!--
    To use a MuleXml configuration file use this context listener
    -->
    <listener>
        <listener-class>org.mule.config.builders.MuleXmlBuilderContextListener</listener-class>
    </listener>

    <servlet>
        <servlet-name>muleRESTServlet</servlet-name>
        <servlet-class>org.mule.transport.servlet.MuleRESTReceiverServlet</servlet-class>
        <init-param>
            <param-name>org.mule.servlet.timeout</param-name>
            <param-value>4000</param-value>
            <description>request timeout</description>
        </init-param>
        <!-- If a servlet is read-only it will not receive doPut or doDelete events -->
        <init-param>
            <param-name>readonly</param-name>
            <param-value>false</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet>
        <servlet-name>muleServlet</servlet-name>
        <servlet-class>org.mule.transport.servlet.MuleReceiverServlet</servlet-class>
        <load-on-startup>2</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>muleRESTServlet</servlet-name>
        <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>muleServlet</servlet-name>
        <url-pattern>/services/*</url-pattern>
    </servlet-mapping>

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

你可能感兴趣的:(xml,Web,servlet,REST,sun)