Announcement Announcement Module
Collapse
No announcement yet.
MessageHandlerChain and MessageHandler initialisation order Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MessageHandlerChain and MessageHandler initialisation order

    I've tried using a bean that implements MessageHandler and setOutputChannel in a MessageHandlerChain as described in Thread 74514. This works well but I've found that I cannot use MyBean.afterPropertiesSet() to check that the outputChannel is set because the method is getting called before the MessageHandlerChain is initialised (which sets the outputChannel on it's messageHandlers).

    Is there any way around this? I use MyBean in other circumstances and in those cases I want to ensure that the output channel has been configured before the bean is used.

  • #2
    You should create an issue for this. I think you can trick around this with the depends-on attribute, but imo Spring Integration is breaking a Spring contract here, so it's worth a JIRA.

    Comment


    • #3
      Raised INT-756

      Comment

      Working...
      X