Is it right to use "wiretap" as a second line logic channel?
Or I should use another methods? I not found anything appropriate (pubSubChannel?)
For example:
@Bean
HttpRequestHandlingMessagingGateway srvPutVers() {
return Http.inboundGateway("/srvPutVers")
.requestChannel("callLogicAndReply.input")
.requestPayloadType(SomeRq.class)
.get();
}
@Bean
IntegrationFlow callLogicAndReply() {
return f -> f
.wireTap("logicHard.input")
.transform(p -> "{\"status\": \"Ok\"}");
}
@Bean
IntegrationFlow logicHard() {
return f -> f
.log("hard logic");
}