Announcement Announcement Module
Collapse
No announcement yet.
Asynchronous request reply correlation (again) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    BTW, this works too..

    Code:
    public Message<String> aggregate(List<Message<String>> in) {
    	return MessageBuilder.fromMessage(in.get(1))
    		.setReplyChannel((MessageChannel) in.get(0).getHeaders().getReplyChannel())
    		.build();
    }
    Code:
    <int:aggregator input-channel="in" ref="agg" output-channel="route.reply"/>
    
    <int:service-activator input-channel="route.reply" expression="payload"/>
    But it's perhaps not as obvious as to why it works :-)

    Comment

    Working...
    X