How do I specify default output channel on routeToRecipients using Spring Integration Java DSL 1.0.0.M3 -
After upgrading the spring-integration Java DSL to M3, I use the receiver list router on any flow Seeing the following error:
org.springframework.messaging.MessageDeliveryException: no channels have been resolved by the router and no default output channel is defined It is not clear how this is specified in M3. There is no output channel option on Endpoint Configurator and there is nothing at the receiver list on the CPU. any suggestion?
According to the there is no other reason to specify .defaultOutputChannel () , Because the next . Channel () (or inherent) is used for that purpose because that is because defaultOutputChannel actually plays the role of standard output channel . So you now have a more formal integration flow: @in public integrationflow recipient listflow () {return integration flows. ("Recipient Listpoint") & Lt; String, string & gt; Convert (P -> P .ReplaceFirst ("payload", "")). User (r -> r.recipient ("foo-channel", "'foo' == payload ''). ("DefaultOutputChannel") .handle (m - & gt; ...) ("recipient") and (boolean) m.getHeaders ("recipient"), "bar-channel", m - & gt; ().). Get ();} Where . Channel ("defaultOutputChannel") can be omitted.
Comments
Post a Comment