Spring Book – Chapter 20 – Spring Integration

Message Endpoint

The primary responsibility of a message endpoint is to connect your application code to the underlying messaging infrastructure. It should do this in such a way that the application code is not tied to a messaging structure and that it doesn’t have any knowledge of either the message or the message channels.

Message endpoint in many ways is compared to as a controller in MVC architecture. In MVC controller handles the HTTP request and is mapped to URL’s in the similar way as endpoints handles messages and is mapped to the message channels. The point to be noted here is that both controller and endpoints does this by isolating the application code from the underlying infrastructure details which is important in avoiding the level of complexity arising out of it.

There are varieties of message endpoints, which can be summarized as shown below:

  • Channel Adapter
  • Gateway
  • Service Activator
  • Router
  • Splitter
  • Aggregator
  • Transformer
  • Filter
  • Bridge

Channel adapter, Gateway and Service Activator endpoints allows connections to your application or to the outside world. However other endpoints listed above does more of message translations, splitting, routing etc. We will now see these message endpoints in some detail in the following sections.

Page Visitors: 13409

The following two tabs change content below.
Tomcy John

Tomcy John

Blogger & Author at javacodebook
He is an Enterprise Java Specialist holding a degree in Engineering (B-Tech) with over 10 years of experience in several industries. He's currently working as Principal Architect at Emirates Group IT since 2005. Prior to this he has worked with Oracle Corporation and Ernst & Young. His main specialization is on various web technologies and acts as chief mentor and Architect to facilitate incorporating Spring as Corporate Standard in the organization.
Tomcy John

Latest posts by Tomcy John (see all)

2 thoughts on “Spring Book – Chapter 20 – Spring Integration

  1. Hi,
    Thanks for this blog and information sharing!
    I have one question from Spring Integration. Just thought of checking with you.
    I have SimplewebserviceOutBoundGateway. I need to send a document / attachment to the webservice. How will i achieve that?
    This is my current gateway configuration:

    Please let me know, if you can throw some light in this area.
    Thanks in Advance!

  2. Hi,
    Thank you for your information sharing.
    I have one doubt,could you please suggest me the correct frameworks to address that issue.

    My requirement is I would like to get and process files using spring and camel.


Leave a Reply

Your email address will not be published. Required fields are marked *