Adding JMS in Spring Roo

Last week I was making a quick Spring JMS demo for my Enterprise Integration with Spring 3 course and thought WWRD (what would Roo do)?

Configuring JMS:

roo> jms setup --provider ACTIVEMQ_IN_MEMORY --destination gordon.queue.stuff

Roo creates a new configuration file:
Created SRC_MAIN_RESOURCES/META-INF/spring/applicationContext-jms.xml

The “applicationContext-jms.xml” file:

Picked up from “web.xml”:

contextConfigLocation classpath*:META-INF/spring/applicationContext*.xml

Configures ActiveMQ with:

  1. An “amq” namespace mapped to http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd
  2. The ActiveMQ Broker
  3. The ActiveMQ Connection Factory using Spring’s o.sf.jms.connection.CachingConnectionFactory
  4. A sample JMS destination named “myDestination” class

Go and Play and remember WWRD.


Want to learn Spring Core, Spring Batch, Spring Integration?
Teaching Enterprise Integration with Spring <– see schedule here


About Gordon

Technology enthusiast primarily focused on Java and Open Source projects. Spring Certified Professional and Trainer. http://twitter.com/gdickens
This entry was posted in ActiveMQ, JMS, Roo, Spring Framework, Spring Roo and tagged , , , , , . Bookmark the permalink.

One Response to Adding JMS in Spring Roo

  1. Pingback: Tweets that mention Technophile Blog ยป Adding JMS in Spring Roo -- Topsy.com

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>