Category Archives: ActiveMQ

ActiveMQ asynchronous patterns

In previous post, I made a simple ActiveMQ (Paper-Rock-Scissors-game).

Now we are going tune it up a bit by implementing several small design improvements:

  • Implement Return Address pattern
  • Implement Correlation Identifier pattern
  • Transform the consumer to asynchronous by replacing the method receive() with implementation of the interface MessageListener

Continue reading ActiveMQ asynchronous patterns

ActiveMQ Java example

This post describes simple ‘paper-rock-scissors’ ActiveMQ Java example. ActiveMQ is the Apache response of MSMQ. There is a good installation for all OS in the book ‘ActiveMQ in Action’ or in here

At the end you should have two things up and running:
http://localhost:61616 and http://localhost:8161/admin/

We got the following task:

Make ”Paper-Rock-Scissor”-game

  • Each application randomly picks one of the three options and using messaging transmits it to the opponent.
  • An outcome is determined and displayed on the console.

Continue reading ActiveMQ Java example