mule是實現esb的好幫手,跟著這裡的文可以初學,但有幾個地方要注意.http://javafever.javaeye.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>