Service Activator Pattern
In enterprise applications, a majority of the processing is done in a synchronous manner. A client invokes a business service and waits until the business service returns from processing. However, the business processing in some use cases takes considerable time and resources. The business processing might even span applications, possibly integrating with applications inside and outside the enterprise. For these long-lived processes, it is not feasible for application clients to wait until the business processing completes so in this case we want to invoke services asynchronously. Some long-running use cases take a long time. Instead of blocking the users, we can run these asynchronously JMS is a good example of Service Activator Pattern - JMS (Java Message Service) is an API that provides the facility to create, send and read messages. It provides loosely coupled reliable and asynchronous communication. This pattern is divided into a number of sections for simplicity like pr...