Basic ActiveMQ-Spring configuration. I used this code to help solve a production performance issue. In the end it was due to a lack of grouping of messages.