Part 4. Integration

 

In part 4, we focus on a couple of Java EE services that are critical parts of enterprise Java applications. You’ll learn how to integrate enterprise services such as email and messaging with Roo applications. You’ll also be introduced to another great feature of the Roo framework: support for add-ons.

But before we delve into these topics, we cover Roo’s unit and integration testing support in chapter 9, “Testing your application.” We look at the testing strategies for different tests like unit, integration, and functional tests. We also discuss DataOnDemand components—a useful test class to generate test fixtures. Mock objects are a great way to test a class with lots of dependencies. You’ll learn how to mock entities and services as well as test Roo services and repositories inside the container. Finally, we explore web testing using the Selenium tool.

Chapter 10, “Enterprise services—email and messaging,” shows you how to integrate a mail server and asynchronous messaging using the Java Message Service (JMS) API. You’ll learn, with the help of sample application use cases, step-by-step details of implementing email notification and messaging using a JMS topic as well as a queue. You’ll also learn how to monitor messaging activity using tools like VisualVM and Spring Insight.