Results 1 to 3 of 3

Thread: jdbc:outbound-channel-adapter exception doesn't contain failedMessage

  1. #1
    Join Date
    Feb 2011
    Posts
    2

    Default jdbc:outbound-channel-adapter exception doesn't contain failedMessage

    Hi all,
    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.

    any suggestions?

  2. #2
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    632

    Default

    Hello

    Have you caught CannotGetJdbcConnectionException in the ErrorHandler on errorChannel or just in the logs?
    failedMessage is a MessagingException's field.

    Give more info, please.

    Artem Bilan

  3. #3
    Join Date
    Feb 2011
    Posts
    2

    Default

    Hi Artem,
    Thank you for your answer, that worked!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •