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:
- An “amq” namespace mapped to http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd
- The ActiveMQ Broker
- The ActiveMQ Connection Factory using Spring’s o.sf.jms.connection.CachingConnectionFactory
- 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
Pingback: Tweets that mention Technophile Blog ยป Adding JMS in Spring Roo -- Topsy.com