Spring Book – Chapter 20 – Spring Integration

Channel Adapter

Channel adapters are message endpoints which provide one-way integration. Broadly it can be categorized as:

  • Source adapter / Inbound adapter – These adapters move information from some external source into an application as illustrated in Figure 22-9 below.

Figure 22-9. Source / Inbound adapter

Figure 22-9. Source / Inbound adapter

  • Target adapter / Outbound adapter – These adapters move information out of a system to some target location as illustrated in Figure 22-10 below.

Figure 22-10. Target / Outbound adapter

Figure 22-10. Target / Outbound adapter

In EAI, channel adapter can be pictorially represented as shown in Figure 22-11 below.

 

Figure 22-11. Channel adapter

Figure 22-11. Channel adapter

Application to application interaction using channel adapter can be pictorially represented as shown in Figure 22-12 below.

 

Figure 22-12. Application to application interaction using channel adapter

Figure 22-12. Application to application interaction using channel adapter

Listing 22-5 shows declaration of Inbound File adapter and Figure 22-13 shows the same pictorially.

Listing 22-5. Declaring inbound file adapter in Spring configuration file

Figure 22-13. Inbound File Adapter

Figure 22-13. Inbound File Adapter

Listing 22-6 shows declaration of Outbound JMS adapter and Figure 22-14 shows the same pictorially.

Listing 22-6. Declaring outbound JMS adapter in Spring configuration file

 

Figure 22-14. Outbound JMS Adapter

Figure 22-14. Outbound JMS Adapter

Page Visitors: 11712

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.

    Thanks,
    Madhu

Leave a Reply

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