A probably-way-too-Java-esque Scala program that consumes JMS messages with ActiveMQ. It's adapted from the excellent Java/Maven/ActiveMQ tutorial by Ian P. Christian.
To run it, start up ActiveMQ: mvn org.apache.activemq.tooling:maven-activemq-plugin:5.3.0:run
Run the Producer with: mvn compile exec:java -Dexec.mainClass=com.cflewis.jms.ProducerApp
Run the Consumer with: mvn compile exec:java -Dexec.mainClass=com.cflewis.jms.ConsumerApp
This code is released under a BSD license.