Red Hat Camel K is deprecated
Red Hat Camel K is deprecated and the End of Life date for this product is June 30, 2025. For help migrating to the current go-to solution, Red Hat build of Apache Camel, see the Migration Guide.5.8. 部署 Camel K JMS 集成
本教程介绍了如何使用 JMS 连接到消息代理,以便使用和生成消息。有两个示例:
- JMS Sink:本教程演示了如何向 JMS 代理生成消息。
- JMS Source:本教程演示了如何使用来自 JMS 代理的消息。
先决条件
- 请参阅 GitHub 中的教程: https://github.com/openshift-integration/camel-k-example-jms/tree/1.6.x。
您必须具有集群管理员访问 OpenShift 集群才能安装 Camel K。
- Visual Studio (VS)代码是可选的,但推荐获得最佳开发人员体验。请参阅设置您的 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 教程。这会在 VS Code 中打开一个新的 Didact 选项卡,以显示教程说明。 按照教程说明,点提供的链接自动运行命令。
或者,如果您没有安装带有 Didact 扩展名的 VS Code,您可以手动输入 https://github.com/openshift-integration/camel-k-example-jms 中的命令。
其他资源