Skip to content

A demo project by using Spring MVC + JMS over Apache ActiveMQ.

License

Notifications You must be signed in to change notification settings

hiroxpepe/activemq-examproject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

activemq-examproject

A simple project by using Spring MVC + Spring JMS over Apache ActiveMQ.

Overview

It's pair web applications that the one sends a message to Apache ActiveMQ message broker, the other receives the message from the broker.

Content

No Purpose Path
1 Message sender /source/queue/sender/webapp
2 Message receiver /source/queue/receiver/webapp
3 Message broker run via docker

What tools to use.

  • Maven (* also JDK)
  • Docker

How to build the project.

$ cd PathToThisREADME.md
$ mvn install

How to run the project.


STEP1: run Apache ActiveMQ via docker.

> docker pull rmohr/activemq
> docker run -p 61616:61616 -p 8161:8161 rmohr/activemq
user:admin
pass:admin

STEP2: run receiver webapp via jetty:run.

open new terminal.

$ cd PathToThisREADME.md
$ cd source/queue/receiver/webapp
$ mvn jetty:run

STEP3: run sender webapp via jetty:run.

open new terminal.

$ cd PathToThisREADME.md
$ cd source/queue/sender/webapp
$ mvn jetty:run

License

It's released under version 2.0 of the Apache License.