Apache Camel AHC 组件示例测试源 jar
我正在使用 Apache Camel 2.8 及其 AHC 组件创建一个 POC。 我在 Apache Camel 网站的示例部分找不到任何相同的示例。
另外,在 AHC 组件详细信息页面 http://camel.apache.org/ahc.html 示例仅显示发送到单个 URL 的请求。对于以异步方式将请求发送到多个 URL 并处理它们的回调和响应,我看不到任何示例。
如果有人对此做过工作并能指出我在哪里可以找到所需的示例,我将非常感激。
另外,我正在本地 Maven 存储库中寻找 Camel 的 AHC 组件的单元测试,但找不到测试源 JAR 文件。从哪里以及如何下载相同的文件?单元测试将有助于如何使用 AHC 组件 API。
我可以在这个位置找到测试源代码 https ://fisheye6.atlassian.com/browse/camel/trunk/components/camel-ahc/src/test/java/org/apache/camel/component/ahc
有吗我可以通过什么方式以 JAR 文件的形式下载所有测试?
谢谢,
吉格内什
I am creating a POC using Apache Camel 2.8 and its AHC component.
I could not find any examples on Apache Camel's website's Examples section for the same.
Also on the AHC component detail page http://camel.apache.org/ahc.html examples only show request being sent to a single URL.For sending requests to multiple URLs in aysnchronous manner and handling their callbacks and responses I cannot see any examples.
If anybody has worked on this and can point me to where I can find the desired examples I would be very much thankful.
Also I was looking out for the unit tests for Camel's AHC component in my local maven repository but could not find the test-sources JAR file.From where and how can I download the same? Unit tests would help in how to use the AHC component API.
I could find the test source code at this location
https://fisheye6.atlassian.com/browse/camel/trunk/components/camel-ahc/src/test/java/org/apache/camel/component/ahc
Is there any way in which I can download all the tests in the form of a JAR file?
Thanks,
Jignesh
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Camel-ahc 组件默认是异步的。
请在此处查看更多详细信息以及该页面的链接: http://camel.apache.org/ asynchronous-routing-engine.html
因此,如果您有一个使用 AHC 执行请求/回复的 Camel 路由,那么您可以同时执行路由消息,并且camel-ahc 异步运行。
The camel-ahc component is asynchronous by default.
See more details here and the links from that page: http://camel.apache.org/asynchronous-routing-engine.html
So if you for example have a Camel route that does a request/reply using AHC, then you can do route messages concurrently, and the camel-ahc runs asynchronously.