Mule3.0开发图解教程
方便开发人员迅速上手掌握Mule
环境搭建和例子:
Download mule standaloe from web site:
1. 2. Unzip to a path(such as: D:\mulesl312)
Installing Mule IDE in Eclipse
3. Start Eclipse, and set up a workspace for your installation of Mule if you haven't already. (Make
sure your workspace does not have a space in the directory path) 4. In the workbench view, choose Help > Install New Software. 5. Press the Add button next to the Work with text box, enter
http://doc.guandang.net/mule-ide/updates/3.4/ and press Enter. The Mule IDE
now appears in your list of available software.
6. Select the Mule IDE check box and click Next, and after Eclipse processes for a moment, click Next
again.
7. Review the Mule IDE license, select the option to accept the license, and then click Finish. 8. Click Yes to restart Eclipse. 9. Set Mule Distributions in eclipse:
方便开发人员迅速上手掌握Mule
You are now ready to configure the Mule distribution as described in the next section. Config MULE_HOME and add bin to path: 10. MULE_HOME: D:\mulesl312
11. Path:%Path%; %MULE_HOME%\bin
Create a new Mule project:
How to Import a existing project to Mule project and run it:
there is some ecamples in example folder of MULE,wecanimport
them
方便开发人员迅速上手掌握Mule
We neeed to add Mule classpath lib to the project
Then we can run the project on Mule runtime like as:
方便开发人员迅速上手掌握Mule
So server starts:
NFO 2011-06-22 11:38:01,125 [main]
org.mule.module.management.agent.JmxAgent: Registered Endpoint Service with name:
Mule.04cd6ac8-9c81-11e0-95b7-8bd1ea0dc252:type=Endpoint,service="Hello
World",connector=connector.http.mule.default,name="endpoint.http.localhost.8888"
INFO 2011-06-22 11:38:01,125 [main]
org.mule.module.management.agent.JmxAgent: Registered Connector Service with name
Mule.04cd6ac8-9c81-11e0-95b7-8bd1ea0dc252:type=Connector,name="connector.servlet.mule.default.1"
INFO 2011-06-22 11:38:01,125 [main]
org.mule.module.management.agent.JmxAgent: Registered Connector
Service with name
方便开发人员迅速上手掌握Mule
Mule.04cd6ac8-9c81-11e0-95b7-8bd1ea0dc252:type=Connector,name="connector.stdio.mule.default.1"
INFO 2011-06-22 11:38:01,125 [main]
org.mule.module.management.agent.JmxAgent: Registered Connector Service with name
Mule.04cd6ac8-9c81-11e0-95b7-8bd1ea0dc252:type=Connector,name="connector.VM.mule.default.1"
INFO 2011-06-22 11:38:01,125 [main]
org.mule.module.management.agent.JmxAgent: Registered Connector Service with name
Mule.04cd6ac8-9c81-11e0-95b7-8bd1ea0dc252:type=Connector,name="connector.http.mule.default.1"
INFO 2011-06-22 11:38:01,140 [main] org.mule.DefaultMuleContext: **********************************************************************
* Mule ESB and Integration Platform * * Version: 3.1.2 Build: 21975 * * MuleSoft, Inc. * * For more information go to http://doc.guandang.net * * *
* Server started: 11-6-22 上午11:38 *
* Server ID: 04cd6ac8-9c81-11e0-95b7-8bd1ea0dc252 * * JDK: 1.6.0_10-rc2 (mixed mode, sharing) * * OS encoding: UTF-8, Mule encoding: UTF-8 * * OS: Windows XP - Service Pack 3 (5.1, x86) * * Host: PC-201103071221 (192.168.40.61) * * Mode: Development * * * * Agents Running: * * JMX Agent *
**********************************************************************
mule-config.xml:
<inbound-endpoint address="http://localhost:8888"
transformer-refs="HttpRequestToNameString" exchange-pattern="request-response"> <not-filter>
<wildcard-filter pattern="/favicon.ico"/> </not-filter> </inbound-endpoint>
//所有的转换器都在此,就我理解所有的转换过程其实都要自己写,可以自己定义通用的转换器重用并扩展。
方便开发人员迅速上手掌握Mule
//public class ChatStringToString extends AbstractTransformer 父类 <custom-transformer name="StringToNameString" class="org.mule.example.hello.StringToNameString"/> <custom-transformer name="NameStringToChatString" class="http://doc.guandang.netStringToChatString"/> <custom-transformer name="ChatStringToString" class="org.mule.example.hello.ChatStringToString"/> <custom-transformer name="HttpRequestToNameString" class="org.mule.example.hello.HttpRequestToNameString"/> <custom-transformer name="ExceptionToString" class="org.mule.example.hello.ExceptionToString"/> <custom-transformer name="HttpRequestToParameter"
class="org.mule.transport.servlet.transformers.HttpRequestToParameter"/>
<custom-transformer name="ObjectToString"
class="org.mule.transformer.simple.ObjectToString"/>
理论和模型:
1. 简介
Mule ESB是一个基于Java的轻量级企业服务总线和集成平台,允许开发人员快速便利地连接多个应用,并支持应用间的数据交换。Mule ESB支持集成现有系统而无论其底层采用何种 …… 此处隐藏:5329字,全部文档内容请下载后查看。喜欢就下载吧 ……
相关推荐:
- [高中教育]电子线路高频非线性部分2.1
- [高中教育]中班美术活动——我的小手
- [高中教育]常用三极管参数大全
- [高中教育]计算机常见故障及解决办法
- [高中教育]风机基础环水平度控制方法探讨
- [高中教育]机械安全工程(专升本)阶段性作业3
- [高中教育]2009年安徽省高考语文考试说明刍议
- [高中教育]unit5 let's eat公开课教案设
- [高中教育]计算机网络原理课后习题答案
- [高中教育]2016-2022年中国新能源市场研究与投资
- [高中教育]2015-2020年中国会议行业市场评估及投
- [高中教育]经销商大会峰会主持人串词开场白
- [高中教育]2014新版北师大数学三年级上册小熊购物
- [高中教育]七年级第一学期体育与健康全套教案
- [高中教育]第三章:国际金融市场
- [高中教育]六年级下册数学单元测试-2.比例 北师大
- [高中教育]2016年上海海事大学法学院624刑法之《
- [高中教育]中国碳化钙产业竞争现状及未来五年投资
- [高中教育]网络时代,我们怎么玩
- [高中教育]圆锥曲线——高中数学基础知识与典型例
- 高集医院世界艾滋病宣传日活动方案
- 苏教版六年级英语上册期末试卷含答案
- 全民枪战生化英雄模式幽灵怎么玩 生化
- 灿烂的宋元文化一导学案
- 第2章货币资金与应收款项
- 北师大版八年级下册数学第三章《分式》
- 浅析高分子材料成型加工技术
- 华南理工大学2013年度共青团先进集体及
- 教师资格科目二小学教案模板(共合集)
- 工程扩建可研报告
- 中华人民共和国海事局2014年度招录公务
- 提高农村小学生作文能力的教学尝试
- 徒手心肺复苏术操作步骤
- 毛概试题库7-15章
- 2014-2015学年度(上)初中班主任工作计
- 企业驾驶员安全生产责任书
- 第07章 不等式测试题-2016年高考文科数
- 医疗器械经营企业工作程序
- 考研英语必背36篇_彩版_精华
- 初中9月13-15假期作业 (1)




