Announcement Announcement Module
Collapse
No announcement yet.
What is the best candidate to apply IF-ELSE logic inside a chain ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    The root of couse is here: MessagingGatewaySupport.send()
    Code:
    if (this.errorChannel != null) {
    	this.messagingTemplate.send(this.errorChannel, new ErrorMessage(e));
    }
    This ErrorMessage will be send to your 'globalExceptionHandlerChannel', but as you see without headers.
    The paylaod of this ErrorMessage is a Exception from underlying process behind request channel.
    In most cases it is an MessagingException, who has failedMessage property.
    And voila - your headers are here!

    Comment


    • #17
      it would be great if you'd done something yourself
      Thanks. So now you understand why I was unable to do it myself

      Also, are we not allowed to use SpEL in the "header-name" attribute of a header-value-router ?

      regards
      LB
      Last edited by lbvirgo; Jul 9th, 2013, 01:58 PM.

      Comment


      • #18
        are we not allowed to use SpEL in the "header-name" attribute of a header-value-router ?
        No, It relies on concrete header name. However I agree: it's redundant as we can use similar SpEL in the generic router .
        header-value-router is here historically. It had a value when there was no SpEL support.

        Comment

        Working...
        X