I have created a simple spring cloud streaming "source" & "Sink" applications with the kafka binder and registered the jars in SCDF (Spring Cloud Data Flow).
Created the steam in SCDF ( source-app | sink-app ) and deployed the stream successfully.
When i try to call the source , the message produced from source is not written to Kafka topic. Topic is created with the name of "steam-name.sourceapp-name".i checked through the Kadeck tool.and from the SCDF source log, i see the message is produced from the source app end as well.but the message is not published to the topic.
Dataflow skipper,local dataflow server,zookeeper and kafka running locally.
My source application is simple, code is below:
@GetMapping("send-it")
@SendTo(Source.OUTPUT)
public Message<String> out() {
final Message<String> test_test =
MessageBuilder.withPayload("appTestName: " + "demo" ).build();
System.out.println("Sending message ....");
return test_test;
}
Used @EnableBinding(Source.class),@RestController on class level.