# spring-cloud-stream-binder-ibm-mq **Repository Path**: Zthree_Project/spring-cloud-stream-binder-ibm-mq ## Basic Information - **Project Name**: spring-cloud-stream-binder-ibm-mq - **Description**: 该项目将IBM MQ和spring-cloud-stream融合使用的场景 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-10-10 - **Last Updated**: 2022-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # spring-cloud-stream-binder-ibm-mq #### 介绍 该项目将IBM MQ和spring-cloud-stream融合使用的场景 #### 软件架构 软件架构说明 该场景也可作为其他mq的绑定更换的一个案例。当前案例适配IBM MQ场景的结合使用,如果需要使用其他MQ,则只需要更改掉JmsBinderIbmMQ类中发送信息即可。 - 1.0.0版本的代码是直接引入,但是不兼容IBM MQ的监听Topic - 1.0.1 spring-cloud-stream-binder-ibm-mq没封装出来,但是单独提取spring-cloud-stream-binder-ibm-mq-point的jar包还是能用,但是依然不能使用发布订阅 #### 使用说明 1. 引入项目jar包:[mq-jms-spring-boot-starter.jar](https://mvnrepository.com/artifact/com.ibm.mq/mq-jms-spring-boot-starter) 和 javax.jms-api.jar 2. JmsTemplateConfig类中配置链接IBM MQ的链接信息,且需要在application.yml中配置链接访问的topic即可 3. 使用:http://localhost:8801/test?send=生产消息 # Getting Started #### 参考文档 1. IBM MQ的使用spring cloud项目[文档](https://developer.ibm.com/tutorials/mq-jms-application-development-with-spring-boot/#:~:text=IBM%20MQ%20has%20a%20Spring%20Boot%20Starter%20which,scalable%20way%20that%20decouples%20one%20application%20from%20another.) 2. IBM MQ的使用其实就是JMS的基本使用,了解相关JMS相关学习知识即可简单使用 3. 官方文档:[Spring Cloud Stream](https://docs.spring.io/spring-cloud-stream/docs/current/reference/html/) 4. 参考[Active MQ引入写法](https://blog.csdn.net/panchang199266/article/details/84556188) * [spring-cloud-stream-binder-activemq](https://github.com/madkt12/spring-cloud-stream-binder-activemq) * [spring-cloud-stream-redis](https://gitee.com/myprofile/spring-cloud-stream-redis?_from=gitee_search)