<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    linugb118--java space

    Java

    Mule ESB 實戰

    ESB

    1.下載
    http://www.mulesoft.org/documentation/display/MULE2INTRO/Home

    下載Mule ESB 2.2.1 Full Dist.

    2.zip 文件

    3.安裝所需要的環境
    http://www.mulesoft.org/documentation/display/MULE2INTRO/Installing+Mule
    java1.5+

    Mule Build Tool有三種方式
    Ant/Maven/Mule IDE
    下面以Maven 為例進行操作

    4.設置環境變量
    比如

    Linux/UNIX

    export JAVA_HOME=/opt/java/jdk
    export MAVEN_HOME=/opt/apache/maven-2.0.9
    export MAVEN_OPTS='-Xmx512m -XX:MaxPermSize=256m'
    export MULE_HOME=/opt/mule
    export PATH=$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin:$MULE_HOME/bin


    Windows

    set JAVA_HOME=C:\Program Files\Java\jdk
    set MAVEN_HOME=C:\Apache\maven-2.0.9
    set MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=256m
    set MULE_HOME=C:\Mule
    set PATH=%PATH%;%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%MULE_HOME%\bin
       
    Note: If you will run Mule as a Windows service, you must create system environment variables instead of user environment variables.

    創建一個Maven repository 目錄,比如c:\.m2\repository 在windows系統上,如果windows 不讓創建.m2文件夾,請用mkdir目錄創建
    打開Maven conf 目錄,比如c:\apache-maven-2.0.9\conf;打開setting.xml 文件,查找localRepository
    將注釋去除或者添加一段
    <localRepository>c:/.m2/repository</localRepository>

    5.run Hello Word
    進入windows cmd 命令行,分別查看ant/maven是否正常

    在%MULE_HOME%\lib\user 中查看是否存在mule-example-hello.jar
    如果不存在 那么我們需要ant 或者 mvn 來build jar
    我對mvn不是很熟悉,就用ant,在MULE_HOME%\examples下可以看到hello的例子
    下面有build.xml 和pom.xml
    查看build.xml 會發現,執行ant setup就能build hello project
    在下來就要運行mule,hello文件夾下面的readme有描述

    ------------------
       Linux / Unix
        ------------
        mule -config file:conf/hello-config.xml
        mule -config file:conf/hello-http-config.xml
         or
        export MULE_LIB=./conf
        mule -config hello-config.xml
        mule -config hello-http-config.xml

        Windows
        -------
        mule.bat -config file:conf/hello-config.xml
        mule.bat -config file:conf/hello-http-config.xml
         or
        SET MULE_LIB=.\conf
        mule.bat -config hello-config.xml
        mule.bat -config hello-http-config.xml
       如果運行 http config那么通過
        http://localhost:8888/?name=Ross 可訪問
     --------------------------------------------
     
     更方便的是例子下面提供了hello.bat 直接運行該bat 并輸入1或者2為參數就能啟動hello mule
     (需要提醒的是,第一次啟動mule會有一大堆許可文件要你看,你輸入任何鍵回車后多次過后你就能發現mule啟動成功了)
     
     在conf下有hello-config.xml/hello-http-config.xml
     hello-config.xml他們在console端,通過system.in輸入message,然后在system.out輸出
     hello-http-config.xml 表示在瀏覽器中輸入http://localhost:8888/?name=Ross 那么web頁面會現在動態的name
     
    6最簡單構建Mule project
    你可以通過安裝Eclipse Mule IDE
    http://www.mulesoft.org/documentation/display/MULE2INTRO/Quick+Start
    或者Setting Up Eclipse for Use with Maven
    http://www.mulesoft.org/documentation/display/MULE2INTRO/Setting+Up+Eclipse+for+Use+with+Maven

     

     
       


     

    posted on 2010-08-11 13:55 linugb118 閱讀(3813) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     

    My Links

    Blog Stats

    常用鏈接

    留言簿(1)

    隨筆檔案

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲中文字幕无码爆乳| 亚洲人成在线播放网站岛国| 亚洲乱妇老熟女爽到高潮的片| 亚洲综合激情视频| 亚洲精品免费视频| 国产视频精品免费| 亚洲精品动漫免费二区| 日韩视频免费在线| 国产亚洲视频在线播放大全| 日本一线a视频免费观看| 亚洲AV无码片一区二区三区| 国产真人无遮挡作爱免费视频| 精品亚洲国产成人av| 免费国产a国产片高清| 一级做a爰片久久毛片免费看| 久久久久亚洲爆乳少妇无| 国产午夜成人免费看片无遮挡| 亚洲欧洲在线观看| 四虎最新永久免费视频| 亚洲色欲色欲www在线播放| 无码欧精品亚洲日韩一区夜夜嗨 | 全部免费毛片在线播放| 内射干少妇亚洲69XXX| 青娱乐免费在线视频| 亚洲JLZZJLZZ少妇| 亚洲精品乱码久久久久久蜜桃| 国产高潮久久免费观看| 久久精品无码一区二区三区免费| 亚洲精品无码av片| 国产精品亚洲w码日韩中文| 黄页免费在线观看 | 亚洲av永久中文无码精品 | 免费a级黄色毛片| 国产午夜免费高清久久影院| 亚洲高清视频免费| 免费大黄网站在线观| 日本免费中文视频| 亚洲乱码中文字幕在线| 久久亚洲精品中文字幕三区| 最近中文字幕mv免费高清视频7 | 久久精品成人免费网站|