In JDBC Reconnection strategy implemented blocking as false.. so when we try to deploy the application, even though JDBC connection fails applicaion should be deployed.But Application is not getting deployed in server.
Following is the xml code
<jdbc-ee:connector name="FTPDatabase" dataSource-ref="MySQL_FTP_Data_Source"
validateConnections="true" queryTimeout="-1" pollingFrequency="0"
doc:name="Database">
<reconnect blocking="false" frequency="10000" count="3"/>
</jdbc-ee:connector>
Instead of reconnecting 3 times, please try the reconnecting forever option.
<reconnect-forever blocking="false" frequency="120000" />
. This way whenever the database connection comes back up, it should be successful.In my opinion this is not possible in a OOTB Mule application. The main reason being the manner in which Mule handles exceptions.
What you are facing is a System Exception.
You can read more about Mule's error handling here
I guess the designers were of the opinion that if you have a DB connector, the DB will be accessible when the Mule application starts up, and in many ways this is a good feature instead of failing silently, it fails loud and fails fast :)