Results 1 to 2 of 2

Thread: Direct Channel Error Handling

  1. #1
    Join Date
    Dec 2012
    Posts
    2

    Question Direct Channel Error Handling

    I have a service activator listening on a channel. In my activator service I am throwing a custom exception that extends Runtime Exception. When I receive the response back it is always wrapped by a MessageHandlingException. Is there any way to throw the runtime exception without it being wrapped by MessageHandlingException when using a service activator?

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,021

    Default

    No, because the MessageHandlingException has the failedMessage as a property (as well as the cause); throwing the raw exception would mean losing this important information.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

Posting Permissions

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