You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
6 years ago | |
|---|---|---|
| .. | ||
| rocketmq-consume-acl-demo | 6 years ago | |
| rocketmq-consume-demo | 6 years ago | |
| rocketmq-produce-acl-demo | 6 years ago | |
| rocketmq-produce-demo | 6 years ago | |
| style | 6 years ago | |
| LICENSE | 6 years ago | |
| README.md | 6 years ago | |
| README_zh_CN.md | 6 years ago | |
| pom.xml | 6 years ago | |
README.md
rocketmq-spring-boot-samples
It's a demo project for how to use rocketmq-spring-boot
Run the test case locally
-
build and install the rocketmq-spring-boot-starter
-
startup rocketmq according to quick-start, verify the namesvr and broker startup correctly, Note: DON'T do "Shutdown Servers" step. http://rocketmq.apache.org/docs/quick-start/
-
create topics for the demo test cases
bash bin/mqadmin updateTopic -c DefaultCluster -t string-topic
bash bin/mqadmin updateTopic -c DefaultCluster -t order-paid-topic
bash bin/mqadmin updateTopic -c DefaultCluster -t message-ext-topic
bash bin/mqadmin updateTopic -c DefaultCluster -t spring-transaction-topic
- run tests
# open a terminal, run produce
cd rocketmq-produce-demo
mvn clean package
java -jar target/rocketmq-produce-demo-0.0.1-SNAPSHOT.jar
# open another terminal, run consume
cd rocketmq-consume-demo
mvn clean package
java -jar target/rocketmq-consume-demo-0.0.1-SNAPSHOT.jar