java - How to declare two outbound-channel-adapter for publishing different message -
i have declared int:chain single input , output channel,
<int:chain input-channel="inputchannel" output-channel="channel"> <int:transformer method = "transform" > <bean class="com.sampleconverter" /> </int:transformer> <int:service-activator method="transform"> <bean class="com.transformer" /> </int:service-activator> <int:object-to-string-transformer /> </int:chain>
how declare multiple output-channel each having different transform methods (different messages)
thanks in advance
only 1 component in spring integration has multi output - router
.
so, can configure in end of chain
, let decide channel send message provided condition.
for example:
<payload-type-router> <mapping type="java.lang.string" channel="strings"/> <mapping type="java.lang.number" channel="numbers"/> </payload-type-router>
more info in reference manual , in samples.
Comments
Post a Comment