spring中使用mule的配置经验总结
来源:互联网 发布:广州恒大淘宝vs墨西哥 编辑:程序博客网 时间:2024/05/16 19:35
在spring中使用mule时,有两种主要的方式,一种是将mule中的bean直接配置在spring的bean.xml文件中,统一由spring来管理;另一种是由mule自带的SpringConfigurationBuilder类来加载mule自己的配置文件mule-config.xml;采用第二种方式时,在spring中可以直接使用mule的配置文件,而不用再写配置文件。SpringConfigurationBuilder类在加载mule-config.xml文件时,由MuleApplicationContext类调用mule-to-spring.xsl文件,对mule-config.xml文件进行transform(转换),实际上就是在mule-config.xml文件的头上加入三个bean的定义,以实现对mule的启动、初始化、服务的注册(mule-config.xml文件中的服务),bean的定义如下(可以查看mule-to-spring.xsl):
<bean id="muleManager" class="org.mule.extras.spring.config.AutowireUMOManagerFactoryBean"/>
<bean id="muleNameProcessor" class="org.mule.extras.spring.config.MuleObjectNameProcessor"/>
<bean name="muleConfiguratrion" class="org.mule.config.MuleConfiguration">
<property name="model">
<value>
<xsl:value-of select="@model"/>
</value>
</property>
<property name="recoverableMode">
<value>
<xsl:value-of select="@recoverableMode"/>
</value>
</property>
<property name="synchronous">
<value>
<xsl:value-of select="@synchronous"/>
</value>
</property>
<property name="synchronousReceive">
<value>
<xsl:value-of select="@synchronousReceive"/>
</value>
</property>
<property name="workingDirectory">
<value>
<xsl:value-of select="@workingDirectory"/>
</value>
</property>
<property name="serverUrl">
<value>
<xsl:value-of select="@serverUrl"/>
</value>
</property>
<xsl:apply-templates select="threading-profile" mode="global"/>
<xsl:apply-templates select="queue-profile"/>
<xsl:apply-templates select="pooling-profile"/>
<xsl:apply-templates select="persistence-strategy"/>
<xsl:apply-templates select="connection-strategy"/>
</bean>
<bean id="muleManager" class="org.mule.extras.spring.config.AutowireUMOManagerFactoryBean"/>
<bean id="muleNameProcessor" class="org.mule.extras.spring.config.MuleObjectNameProcessor"/>
<bean name="muleConfiguratrion" class="org.mule.config.MuleConfiguration">
<property name="model">
<value>
<xsl:value-of select="@model"/>
</value>
</property>
<property name="recoverableMode">
<value>
<xsl:value-of select="@recoverableMode"/>
</value>
</property>
<property name="synchronous">
<value>
<xsl:value-of select="@synchronous"/>
</value>
</property>
<property name="synchronousReceive">
<value>
<xsl:value-of select="@synchronousReceive"/>
</value>
</property>
<property name="workingDirectory">
<value>
<xsl:value-of select="@workingDirectory"/>
</value>
</property>
<property name="serverUrl">
<value>
<xsl:value-of select="@serverUrl"/>
</value>
</property>
<xsl:apply-templates select="threading-profile" mode="global"/>
<xsl:apply-templates select="queue-profile"/>
<xsl:apply-templates select="pooling-profile"/>
<xsl:apply-templates select="persistence-strategy"/>
<xsl:apply-templates select="connection-strategy"/>
</bean>
- spring中使用mule的配置经验总结
- spring中使用mule的配置经验总结
- Mule中使用hibernate3缓存配置问题
- Mule的安装配置
- Mule的安装配置
- Mule中对WebService proxy的wss4j配置
- Mule的消息处理配置
- mule spring
- Mule ESB 学习笔记mule和jersey的整合使用
- python中使用berkeley db的经验总结
- Unity中使用ulua的个人经验总结
- Unity中使用ulua的个人经验总结
- Unity中使用ulua的个人经验总结
- Unity中使用ulua的个人经验总结
- Unity中使用ulua的个人经验总结
- Unity中使用ulua的个人经验总结
- JS-requireJS中使用UEditor的经验总结
- Spring中使用Quartz的配置步骤
- 设计一个html布局器,能移动。拖拽,有属性框。并能生成页面
- 播放 wav 文件
- ArcGIS 10.1 for Server安装教程系列—— Linux下的单机安装
- winform拖拽自定义用户控件到设计器时报错, 而运行无错的情况
- Python对象的深复制与浅复制
- spring中使用mule的配置经验总结
- AppBar的WTL实现
- 如何将openssl、uuid和crypto的库文件放到本地指定库目录
- 加载配置文件时出错: 由于已经达到网络 BIOS 命令限制
- 印象笔记Evernote 教程
- windows 共享内存使用说明
- sed -i
- 英语词汇14
- hdu More is better (并查集)