Chapter 4. Message Endpoints

 

This chapter covers

  • Types of Endpoints and how they differ
  • Transaction boundaries around Endpoints
  • Endpoints under the hood

In the previous chapter, we covered message channels in detail. You now know that some channels accept subscribers to be called in an event-driven way, whereas others require polling consumers. The former enable synchronous invocation of a handler and thereby enable transactions to span both the producer and consumer. The latter offer the flexibility of even more loosely coupled interaction, but break that transaction boundary across separate threads for the producer and sender.

From the programming perspective, the event-driven model is easier to grasp. For example, the MessageHandler interface that’s central to Spring Integration is as simple as it can be:

package org.springframework.integration.core;

public interface MessageHandler {

  void handleMessage(Message<?> message);

}

4.1. What can you expect of an endpoint?

 
 
 

4.2. Transaction boundaries around endpoints

 
 

4.3. Under the hood

 
 

4.4. Summary

 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest