1 / 9

Express Spring Integration

Understanding Channels. Express Spring Integration. Spring Integration. The main components. Pipe. Producer (Sender). Consumer (Receiver). Message. Spring Integration Applications. Pipe. Producer (Sender). Consumer (Receiver). Pipe. Pipe. Pipe. Consumer (Receiver). Consumer

Download Presentation

Express Spring Integration

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Understanding Channels Express Spring Integration

  2. Spring Integration The main components Pipe Producer (Sender) Consumer (Receiver) Message

  3. Spring Integration Applications Pipe Producer (Sender) Consumer (Receiver) Pipe Pipe Pipe Consumer (Receiver) Consumer (Receiver) -/Producer (Sender) Consumer (Receiver) -/Producer (Sender) Producer (Sender) transform filter Message

  4. Messages Message Header Payload

  5. Message Endpoints Adapters (connect your channel to some other system) Filter (remove some messages from channels based on header, content, etc.) Transformer (convert a message content or structure) Enricher (add content to the message header or payload) Service activator (invoke service operations based on the arrival of a message) Gateway (connect your channels without SI coupling)

  6. Message Channels • Two general classifications of message channels • Pollable Channel • Subscribable Channel • While there are many subtypes, they all implement at least one of these SI channel interfaces • see http://docs.spring.io/spring-integration/reference/html/messaging-channels-section.html

  7. Pollable Channels • May buffer its messages • Requires a queue to hold the messages • The queue has a designated capacity • Waits for the consumer to get the messages • Consumers actively poll to receive messages • Typically a point-to-point channel • Only one receiver of a message in the channel • Usually used for sending information or “document” messages between endpoints

  8. Subscribable • Allows multiple subscribers (or consumers) to register for its messages. • Messages are delivered to all registered subscribers on message arrival • It has to manage a list or registry of subscribers. • Doesn’t buffer its messages • Usually used for “event” messages • Notifying the subscribers that something happened and to take appropriate action.

  9. You are ready to tackle Lab 1 Lab 1 is about getting to know and understand Spring Integration channels You also learn how to create and configure a typical Spring Integration application in Eclipse (using Maven)

More Related