# JmsClient **Repository Path**: gaojh/JmsClient ## Basic Information - **Project Name**: JmsClient - **Description**: ActiveMQ客户端 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 18 - **Forks**: 6 - **Created**: 2016-07-20 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: message-server **Tags**: None ## README 使用方式: 一、配置 1、在项目中引入JmsClient 2、配置config/jms.xml 二、发消息到MQ 1、发送消息:JmsClient.sendMessage("queue","message"); 三、监听消息队列 1、实现MessageListener接口,并在实现类上加入Consumer注解 2、启动监听消息:JmsClient.startConsumer(); 四、TOPIC持久化订阅使用 1、在MessageListener接口的@Consumer注解中需要加入clientId,durable设置为true,destinationType为topic 2、其他不用做变更 测试