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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -