Announcement Announcement Module
Collapse
No announcement yet.
int-jms:outbound-channel-adapter + messagePostProcessor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • int-jms:outbound-channel-adapter + messagePostProcessor

    As I can specify a message-converter on my outbound channel adapter, I was wondering if you also can set the messagePostProcessor in a similar fashion? (note that there isn't any property for this). Is there any other way how I can set it or do I have to start using the jmsTemplate directly.

    Thanks,

    Vincent

  • #2
    Currently, the outbound adapter uses a MessagePostProcessor internally to map the SI headers into the JMS Message.

    There is no provision for supplementing this with a user-provided MessagePostProcessor.

    Comment


    • #3
      That said, you can implement a custom JmsHeaderMapper, who's fromHeaders() method is invoked from the HeaderMappingMessagePostProcessor.postProcessMessa ge() - effectively giving you what you need - just be sure to delegate to a DefaultJmsHeaderMapper which will do the normal header mapping and then you can post-process the message further.

      Comment

      Working...
      X