Reconnect using Mule 3.5 db connector

亡梦爱人 提交于 2019-12-24 00:37:45

问题


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>

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"!


回答1:


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



来源:https://stackoverflow.com/questions/25875370/reconnect-using-mule-3-5-db-connector

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!