欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Mule
来自开放百科 - 灰狐
(版本间的差异)
第63行: | 第63行: | ||
./rest-stockquote.sh | ./rest-stockquote.sh | ||
Please enter a stock symbol: ibm | Please enter a stock symbol: ibm | ||
− | StockQuote{symbol=IBM, name=INTL BUSINESS MAC, date=8/25/2006 4:00pm, last=79.88, change=+0.50, open=79.20, high=80.00, low=79.14, | + | StockQuote{symbol=IBM, name=INTL BUSINESS MAC, date=8/25/2006 4:00pm, last=79.88, change=+0.50, open=79.20, high=80.00, low=79.14, |
+ | volume=3428100, previousClose=79.38} | ||
==相关链接== | ==相关链接== |
2006年8月26日 (六) 18:33的版本
Mule is an Enterprise Service Bus (ESB) messaging framework.
目录 |
安装指南
wget http://download.huihoo.com/middleware/esb-soa/mule/mule-1.3-rc4-dist.tar.gz tar zxvf mule-1.3-rc4-dist.tar.gz
测试用例
echo
huihoo@debian:~/middleware/mule/mule-1.3-rc4/samples/echo/bin$ ./mule-echo.sh MULE_HOME=../../..
********************************************************************** * Mule - Universal Message Objects version 1.3-rc4 * * SymphonySoft Limited * * SymphonySoft Limited * * * * Server started: 2006年8月26日 星期六 上午09时52分13秒 CST * * JDK: 1.5.0_07 (mixed mode, sharing) * * OS: Linux (2.6.8-2-386, i386) * * Host: localhost.localdomain (127.0.0.1) * * ID: Mule_Echo_Sample * * * * Agents Running: * * Mule Admin: accepting connections on tcp://localhost:60504 * **********************************************************************
Please enter something: this is a test this is a test http://localhost:8081/services/EchoUMO?method=echo¶m=Mule 浏览器会显示 <soap:Envelope> <soap:Body> <echoResponse> <out>Mule</out> </echoResponse> </soap:Body> </soap:Envelope> 同时控制台会回显 Mule
查看 wsdl 文件信息
http://localhost:8081/services/EchoUMO?wsdl
ctrl-c ****************************************************************************** * Mule shut down normally on: 2006年8月26日 星期六 上午10时01分43秒 CST * * Server was up for: 0 days, 0 hours, 9 mins, 29.796 sec *
echo 测试成功
hello
bin目录下有三个脚本
hello.sh - example using Mule Xml configuration hello-spring.sh - example using Spring beans configuration hello-http.sh - examples that accepts requests over http.
启动 ./hello-http.sh http://localhost:8888/?name=huihoo 显示: Hello huihoo, How are you?
测试成功
stock quote
./rest-stockquote.sh Please enter a stock symbol: ibm StockQuote{symbol=IBM, name=INTL BUSINESS MAC, date=8/25/2006 4:00pm, last=79.88, change=+0.50, open=79.20, high=80.00, low=79.14, volume=3428100, previousClose=79.38}
相关链接
精彩图集
分享您的观点