如何在Spring integration ServiceActivator上触发多个outputchannel?

如何在Spring integration ServiceActivator上触发多个outputchannel?,spring,spring-integration,integration,Spring,Spring Integration,Integration,是否可以在我的Service Activator上触发两个outputchannel @ServiceActivator(inputChannel = Constants.CHANNEL_INPUT, outputChannel = Constants.CHANNEL_OUTPUT) public OutputDto applyValidator(Message<?> message) { ... return outp

是否可以在我的Service Activator上触发两个outputchannel

@ServiceActivator(inputChannel = Constants.CHANNEL_INPUT,
            outputChannel = Constants.CHANNEL_OUTPUT)
    public OutputDto applyValidator(Message<?> message) {
        ...
        return outputDto
        }
@ServiceActivator(inputChannel=Constants.CHANNEL\u输入,
outputChannel=常数。通道(输出)
公共输出到applyValidator(消息){
...
返回输出到
}
否;只有一个

如果要发送给多个使用者,可以将输出通道设置为一个
PublishSubscribeChannel
,每个使用者都会收到消息

或者您可以在下游添加一个
RecipientListRouter