Apache Camel 上的 JBI 超时

发布于 2024-10-08 06:45:03 字数 129 浏览 0 评论 0原文

我正在开发一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

巴黎盛开的樱花 2024-10-15 06:45:03

实际上,由于 JBI 的异步特性,我认为这是不可能的。

Actually I don't think that's possible due the asynchronous nature of JBI.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文