Chapter 10. Enterprise services—email and messaging

 

This chapter covers

  • Roo support for enterprise services
  • Asynchronous messaging using a JMS topic
  • Email service
  • Asynchronous messaging using a JMS queue
  • Monitoring messaging activity

In the previous two chapters, you secured your Roo application by adding the Spring Security API to the application architecture mix, and you learned how to enrich the web tier of the Roo application so it’s functional from a business standpoint. In addition to robust security features and a rich user interface, a real-world application also requires services such as customer email notification and offline data processing that occurs outside of your main business operations, where your customers receive notifications about results at a later time.

In this chapter, we discuss the integration that the Roo framework provides for email and asynchronous messaging using the Java Message Service (JMS) API. We review three different use cases to demonstrate how to integrate email notifications and asynchronous messaging into real-world software applications. We look at Roo commands to set up the infrastructure for email and JMS components. And we define Spring bean components to abstract the connection configuration parameters to communicate with these enterprise services. Finally, you’ll generate the template code to send emails and post messages to a JMS topic and a queue.

10.1. Roo integration with enterprise services

10.2. Defining the sample Course Manager use cases

10.3. Setting up JMS in the Course Manager

10.4. Adding email support for course registration

10.5. Asynchronous messaging for registration confirmation

10.6. Monitoring messaging activity

10.7. Summary

10.8. Resources