【发布时间】:2015-05-27 09:34:02
【问题描述】:
我已经为全局 errorChannel 编写了一个服务激活器。
<!-- global default exception handler-->
<int:service-activator input-channel="errorChannel"
auto-startup="true" ref="defaultExeptionHandler" >
</int:service-activator>
测试类
@Test
public void testTradeAcceptanceFlow() throws Exception {
throw new FileNotFoundException();
}
由于我明确抛出错误,我希望这会在全局错误通道中被捕获,并反过来调用我的处理程序,但它没有这样做。知道为什么吗?
【问题讨论】:
标签: spring integration