Lets assume that the “throwsException” handler throws an exception. Normally, this will go to the error channel. However, will the second subscription still run? Will the message be sent to archiveChannel?
Here is a code sample:
public IntegrationFlow aFlow() {
return IntegrationFlow.from("someChannel")
.publishSubscribeChannel(pubSub -> pubSub
.subscribe(flow -> flow
.handle("object","throwsException")
.channel("nullChannel"))
.subscribe(flow -> flow
.channel("archiveChannel")))
.get();
}
Thanks