mule初学的一个注意地方

   mule是实现esb的好帮手,跟着这里的文可以初学,但有几个地方要注意.http://javafever.iteye.com/blog/121791

 

1) 在做例子二的时候,
     注意项目的输出目录为classes,然后要把mule-config.xml放在src目录下,这样myeclipse打包的时候,才会输出到classes目录下的,

 

2)查看mule的自带例子,可以清楚的很到配置(mule\example\webapp)

 

<!-- Classpath within the servlet context.  Mule will attempt to load config
         files from here first, and then from the remaining classpath. -->
    <context-param>
        <param-name>org.mule.webapp.classpath</param-name>
        <param-value>/WEB-INF/classes</param-value>
    </context-param>

    <context-param>
        <!-- If using the SpringContextLoaderListener, use this param name -->
        <!--<param-name>contextConfigLocation</param-name>-->
        <param-name>org.mule.config</param-name>
        <param-value>
            jmx-config.xml,
            echo-config.xml,
            hello-http-config.xml,
            servlet-config.xml,
            stockquote-rest-config.xml,
            loan-broker-sync-config.xml,
            loan-broker-vm-endpoints-config.xml
        </param-value>
    </context-param>

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