jjzjj

errorChannel

全部标签

java - 如何将 Spring Integration XML 重构为注释支持?

我正在尝试将SpringIntegration的现有xml重构为新的4.0.0.注释。但是我怎样才能像在xml中一样将服务激活器绑定(bind)到错误channel?@Configuration@EnableIntegrationpublicclassConfig{@BeanpublicTcpInboundGatewaygate(){TcpInboundGatewaygateway=newTcpInboundGateway();//???howcanIbindtheserviceactivatorclassasitwasinxml?gateway.setErrorChannel(Mes

java - spring 集成流程中的错误处理实践

我有一个spring集成流程,涉及异步执行、从网关向Controller返回值、返回值后继续集成流程。这是网关:@MessagingGatewaypublicinterfaceGW{@Gateway(requestChannel="f.input")Taskinput(Collectionmessages);}流程如下:@BeanIntegrationFlowjFlow(){returnIntegrationFlows.from(MessageChannels.executor("f.input",executor())).split().channel(MessageChannels