第 67 章 CometD Component
可作为 Camel 版本 2.0 提供
come td: 组件是处理 come td/bayeux 协议的 jetty 实现的传输。
使用此组件结合 dojo 工具包库,可以使用 AJAX 的机制将 Camel 消息直接推送到浏览器中。
Maven 用户需要将以下依赖项添加到其 pom.xml 中:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-cometd</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>67.1. URI 格式
cometd://host:port/channelName[?options]
channelName 表示可由 Camel 端点订阅的主题。