5.8. 部署 Camel K JMS 集成
本教程演示如何使用 JMS 连接到消息代理,以便使用和生成消息。有两个示例:
- JMS Sink:本教程演示如何向 JMS 代理生成消息。
- JMS Source:本教程演示如何使用来自 JMS 代理的消息。
先决条件
- 请参阅 GitHub 中的教程 readme :https://github.com/openshift-integration/camel-k-example-jms/tree/1.6.x。
您必须具有 OpenShift 集群的集群管理员访问权限才能安装 Camel K。
- Visual Studio(VS)Code 是可选的,但建议获得最佳开发人员体验。请参阅 设置您的 Camel K 开发环境。
流程
克隆教程 Git 存储库:
$ git clone git@github.com:openshift-integration/camel-k-example-jms.git
- 在 VS Code 中,选择 File → Open Folder → camel-k-example-jms。
-
在 VS Code 导航树中,右键单击
readme.didact.md
文件,再选择 Didact: Start Didact Tutorial from File。这会在 VS Code 中打开一个新的 Didact 选项卡,以显示教程说明。 按照教程说明,点提供的链接自动运行命令。
或者,如果您没有使用 Didact 扩展安装 VS Code,您可以从 https://github.com/openshift-integration/camel-k-example-jms 手动输入命令。