Apache Camel 上的 JBI 超时
我正在开发一个 JBI 组件,它通过 Camel 路由调用另一个 JBI 组件。第二个组件执行某种长时间操作,有时可能会挂起。我想配置我的 Camel 路由,以便它受到超时限制(假设 5 秒)。它应该以某种方式表现为异步调用......可能吗?
I'm developing a JBI component which calls another JBI component through Camel route. The second component performs some kind of long operation that sometimes may hang up. I would like to configure my Camel route so that it would be restricted with timeout (let's say 5 seconds). It should somehow behave as asynchronous call... Is it possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,由于 JBI 的异步特性,我认为这是不可能的。
Actually I don't think that's possible due the asynchronous nature of JBI.