Registry / messaging / rocketmq-client

rocketmq-client

JSON →
library5.5.0javamavenunverified

Client library for Apache RocketMQ, a distributed messaging and streaming platform.

<dependency> <groupId>org.apache.rocketmq</groupId> <artifactId>rocketmq-client</artifactId> <version>5.5.0</version> </dependency>
INSTALL
IMPORT
SIG · ROCKETMQ-CLIENT
R
rocketmq-client
messagingjavav5.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DefaultMQProducer
✓ org.apache.rocketmq.client.producer.DefaultMQProducer

Create and start a default RocketMQ producer.

import org.apache.rocketmq.client.producer.DefaultMQProducer; public class Example { public static void main(String[] args) throws Exception { DefaultMQProducer producer = new DefaultMQProducer("ProducerGroup"); producer.setNamesrvAddr("localhost:9876"); producer.start(); System.out.println("Producer started"); producer.shutdown(); } }
Debug
Known issues
breakingName server address must be configured before starting the producer.
fix
Set namesrvAddr via setNamesrvAddr() or environment variable.
affects: all
Upgrade
Version history
5.5.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
26
OpenAI (training)
1
Resources
rocketmq-client — mvn dependency:get rocketmq-client · libregistry