Fixing @Transformer for ProcessorApplication.

Without explicitly naming the `inputChannel` and `outputChannel`, well get this error on startup org.springframework.integration.MessageDispatchingException: Dispatcher has no subscribers
This commit is contained in:
John Carey
2017-10-06 19:42:50 -04:00
committed by Vinicius Carvalho
parent 081d8d8178
commit 598fc0b8e7

View File

@@ -790,6 +790,8 @@ A possible alternative is to provide the source, sink or processor configuration
----
package com.app.mysink;
// Imports omitted
@SpringBootApplication
@EnableBinding(Sink.class)
public class SinkApplication {
@@ -813,7 +815,7 @@ package com.app.myprocessor;
@EnableBinding(Processor.class)
public class ProcessorApplication {
@Transformer
@Transformer(inputChannel = Processor.INPUT, outputChannel = Processor.OUTPUT)
public String loggerSink(String payload) {
return payload.toUpperCase();
}