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.
System Exceptions
Mule invokes a System Exception Strategy when an exception is thrown
at the system-level (i.e., when no message is involved, exceptions are
handled by system exception strategies). For example, system exception
strategies handle exceptions that occur:
during application start-up when a connection to an external system
fails When a system exception strategy occurs, Mule sends an exception
notification to registered listeners, logs the exception, and — if the
exception was caused by a connection failure — executes the
reconnection strategy. System Exception Strategies are not
configurable in Mule
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 :)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…