我是Spring集成的新手,但到目前为止我还在学习。
我从名为" channel -1“的通道接收消息,并通过网桥传递到"Channel-2”
<task:executor id="Channel2Executor" pool-size="${executor.pool.size}" rejection-policy="CALLER_RUNS" />
<int:channel id="Channel-2">
<int:dispatcher task-executor="Channel2Executor"/>
</int:channel>
<int:bridge id="adapterParserBridge" input-channel="Channel-1" output-channel="Channel-2">
</int:bridge>奇怪的是,当我在JBoss中部署应用程序时,消息第一次通过并到达后续流的末尾,尽管在流的后面部分有一些错误。
第二次,消息到达"Channel-1",但永远不会超出--没有错误,没有日志,全部处于调试模式,没有任何痕迹。
所以我的问题是:
1)在流程的后期发生的错误是否导致了这样的问题?
2)如何无缘无故、无误地调试这样一小段消息?
3)如果有任何其他建议或建议来深入了解这些渠道,那就更好了
发布于 2012-11-06 10:15:49
在
使用调试日志记录时,如果不至少查看"preSend“调试日志,就不可能向通道1发送消息。
21:09:24.825 DEBUG [someThread][org.springframework.integration.channel.DirectChannel] preSend on channel 'foo', message: [Payload=xxx][Headers={timestamp=1352167764822, id=14b8ae47-08d8-4bf6-94bf-e342eb705df4}]https://stackoverflow.com/questions/13243250
复制相似问题