问题
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