使用Mule 3.5 db连接器重新连接 [英] Reconnect using Mule 3.5 db connector

查看:115
本文介绍了使用Mule 3.5 db连接器重新连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将自己的流程从3.4.1升级到Mule 3.5.1.我正在尝试使用新的数据库连接器替换已弃用的jdbc-ee:connector.对于数据库,我们使用的是Microsoft sql服务器.没有针对MS SQL Server的预定义配置,因此我正在使用db:generic-config配置.有谁知道如何使用新的数据库配置来配置重新连接策略?我发现文档非常稀疏.使用旧的jdbc-ee:connector,您可以简单地将策略指定为子元素.

I'm in the process of upgrading my flows to Mule 3.5.1 (from 3.4.1). I am trying to replace the deprecated jdbc-ee:connector with the new db connector. For the database, we are using Microsoft sql server. There isn't a predefined configuration for MS SQL Server, so I'm using the db:generic-config configuration. Does anyone know how to configure reconnection strategies with the new DB config? I'm finding the documentation is very sparse. Using the old jdbc-ee:connector, you can simply specify the strategy as a child element.

<jdbc-ee:connector name="myDbConnector" validateConnections="true" queryTimeout="-1" pollingFrequency="0" dataSource-ref="myDatasource" doc:name="Database">
    <reconnect-forever blocking="false" frequency="2000" />
</jdbc-ee:connector>

根据m子文档,"Studio界面中出现的几乎每个全局端点和全局连接器的属性"面板都具有重新连接"选项卡,如下图所示:",但我想新的数据库连接器不会陷入几乎每个"的类别!

According to the mule documentation, "The Properties pane for almost every global endpoint and global connector that appears in the Studio interface features a Reconnection tab, as pictured below:", but I guess the new DB connector doesn't fall into the category of "almost every"!

推荐答案

Mule 3.6.0中添加了数据库重新连接: https://www.mulesoft.org/jira/browse/MULE-7741

DB reconnection was added in Mule 3.6.0: https://www.mulesoft.org/jira/browse/MULE-7741

这篇关于使用Mule 3.5 db连接器重新连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆