A simple project by using Spring MVC + Spring JMS over Apache ActiveMQ.
It's pair web applications that the one sends a message to Apache ActiveMQ message broker, the other receives the message from the broker.
No | Purpose | Path |
---|---|---|
1 | Message sender | /source/queue/sender/webapp |
2 | Message receiver | /source/queue/receiver/webapp |
3 | Message broker | run via docker |
- Maven (* also JDK)
- Docker
$ cd PathToThisREADME.md
$ mvn install
> docker pull rmohr/activemq
> docker run -p 61616:61616 -p 8161:8161 rmohr/activemq
- check if it can access.
http://localhost:8161/admin
user:admin
pass:admin
open new terminal.
$ cd PathToThisREADME.md
$ cd source/queue/receiver/webapp
$ mvn jetty:run
-
check if it can access.
http://localhost:8082/home.html -
stop webapp.
hit "Ctrl + C" in the terminal.
open new terminal.
$ cd PathToThisREADME.md
$ cd source/queue/sender/webapp
$ mvn jetty:run
-
check if it can access.
http://localhost:8081/home.html -
stop webapp.
hit "Ctrl + C" in the terminal.
It's released under version 2.0 of the Apache License.