O'Reilly logo

Spring Roo 1.1 Cookbook by Ashish Sarin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sending and receiving JMS messages

Spring Roo provides support for developing messaging applications based on JMS (Java Message Service) API. As of Spring Roo 1.1.5, the only JMS provider supported by Roo is embedded ActiveMQ(http://activemq.apache.org/); it is configured in the same JVM as the Java application accessing it.

In this recipe, we'll look at how Spring Roo supports sending and receiving JMS messages using embedded ActiveMQ.

Getting ready

Create a sub-directory ch06-jms inside the C:\roo-cookbook directory.

Copy the ch06_web_app.roo script into the ch06-jms directory.

Execute the ch06_web_app.roo script that creates flightapp-web Roo project, sets up Hibernate as persistence provider, configures MySQL as the database for the application, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required