Skip to content
No description, website, or topics provided.
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
activeMQConsumer
activeMQProducer
.gitignore
README.md

README.md

ActiveMQ - Spring - Request - Reply

Simple test project to show how to queue objects in ActiveMQ (no-in-memory) with Spring. Also implemented a request-reply-functionality with temp-queues.

I wrote an article about this project: http://jboka.de/2018/06/14/my-way-with-activemq.html

Getting Started

  • Start ActiveMQ. The fastest way is probably as docker container:
docker run --name='activemq' -it --rm -P \ webcenter/activemq:latest

You can find the ActiveMQ-Dashboard under http://localhost:8161/admin with username and password admin. For production usage see https://hub.docker.com/r/webcenter/activemq/#quick-start to configure ActiveMQ.

curl -d '{"name":"Jacob","age":28}' -H "Content-Type: application/json" -X POST http://localhost:8081/add

The reply should look like this:

Produced successfully: {"name":"Jacob","age":28}

curl -X GET http://localhost:8081/get/0

The reply should look like this:

Received successfully: {"name":"Jacob","age":28}

  • Check the concoles of the projects for details of received and replyed messages.
You can’t perform that action at this time.