Mule

来自开放百科 - 灰狐
2010年11月1日 (一) 17:36Allen (讨论 | 贡献)的版本

跳转到: 导航, 搜索
Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 Mule Thanks, Wikipedia.
Mule-logo.png

Mule logo footer.gif 是一款领先的 open source ESB (Enterprise Service Bus) 和集成平台.

Mule 的核心是一个基于SEDA的服务容器,该容器管理被称为通用消息对象 (Universal Message Objects /UMO) 的服务对象,而这些对象均是POJO。

Mule 2.0 已经发布

目录

新闻

    安装指南

    Mule Overview
    from http://download.huihoo.com/mule/
    如: mule-1.3-rc4-dist.tar.gz
    tar zxvf mule-1.3-rc4-dist.tar.gz
    
    Mule ESB

    测试用例

    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&param=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 World

    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}
    

    程序员指南

    Programming Model

    相关链接

    Comment-32x32.png

    <discussion>characters_max=300</discussion>

    分享您的观点
    个人工具
    名字空间

    变换
    操作
    导航
    工具箱