[翻译]理解Mule配置
关于xml配置
Mule使用xml配置来定义每个应用程序,完全描述运行应用程序所需要的结构。一个基本的Mule应用程序可以使用一个非常简单的配置,举个例子:
<?xml version="1.0" encoding="UTF-8"?> <mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:stdio="http://www.mulesoft.org/schema/mule/stdio" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.mulesoft.org/schema/mule/stdio http://www.mulesoft.org/schema/mule/stdio/3.1/mule-stdio.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.1/mule.xsd"> <stdio:connector name="stdio" promptMessage="Yes? " messageDelayTime="1000"/> <flow name="echo"> <stdio:inbound-endpoint system="IN"/> <stdio:outbound-endpoint system="OUT"/> </flow> </mule>
下面再细述这个配置文件。尽管简单,这也是一个完整的应用程序,而且十分易读:稍微有点了解Mule,就知道这是一个标准的输入输出消息传递功能。
结构描述(Schema References)
(待续)

浙公网安备 33010602011771号