Chapter 10. Enterprise services—email and messaging
This chapter covers
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.