Skip to content

Example using Akka-Camel, ActiveMQ and Actors sending each other Ping/Pong messages

Notifications You must be signed in to change notification settings

codingvlad/akka-camel-ping-pong

This branch is up to date with dnvriend/akka-camel-ping-pong:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Dennis Vriend
May 5, 2015
bf6f3b3 · May 5, 2015

History

6 Commits
May 5, 2015
Apr 16, 2015
Apr 16, 2015
May 5, 2015
Apr 16, 2015
Apr 16, 2015
Apr 16, 2015
Apr 16, 2015
May 5, 2015
Apr 16, 2015
Apr 16, 2015
Apr 16, 2015

Repository files navigation

akka-camel-ping-pong

Message brokers and Actors are a possibility using akka-camel. Camel has its purpose as an integration framework for you application, and the message broker can isolate tecnology stacks from one another, overcoming incompatibilities eg. between older and newer versions of Akka.

This very simple example shows how to setup ActiveMQ, Camel and send a Ping/Pong message from two actors. One actor is the PingGenerator that sends a case class to the Pong actor. The PingGenerator has a PingProducer that sends a message to the queue using a Request/Response Message Exchange Pattern. The Pong actor subscribes to the queue and processes the message, creates a new case class, the PongMessage and sends the PingGenerator a response, thus completing the cycle.

Starting

The project uses docker and docker-compose to launch it. There are two scripts, the run.sh to run the example and the test.sh to run tests.

About

Example using Akka-Camel, ActiveMQ and Actors sending each other Ping/Pong messages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 95.7%
  • Shell 4.3%