Jan 23rd, 2012, 04:35 AM
jdbc:outbound-channel-adapter exception doesn't contain failedMessage
I've configured a jdbc outbound-channel-adapter like this:
<jdbc:outbound-channel-adapter channel="myChannel" data-source="myDataSource" query="my query"/>
and I've also configured an errorChannel on the inbound endpoint.
It's supposed to get a MessageHandlingException containing failedMessage on errorChannel when an exception occurs.
I stopped the database service to test it. It received a CannotGetJdbcConnectionException which does not contain failedMessage.
Jan 23rd, 2012, 05:52 AM
Have you caught CannotGetJdbcConnectionException in the ErrorHandler on errorChannel or just in the logs?
failedMessage is a MessagingException's field.
Give more info, please.
Jan 28th, 2012, 03:13 AM
Thank you for your answer, that worked!