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
- 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
In EAI, channel adapter can be pictorially represented as shown in Figure 22-11 below.
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
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
1 |
<int-file:inbound-channel-adapter id=”inFiles” channel=”inboundFiles” directory=”file:C:/sample/”/> |
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
1 |
<int-file:outbound-channel-adapter id=”outJMS” channel=”outJMSChannel” destination=”jmsQueue”/> |
Figure 22-14. Outbound JMS Adapter
Page Visitors: 13052


Tomcy John


Latest posts by Tomcy John (see all)
- A Guide to Continuous Improvement for Architects - February 2, 2023
- Cloud-first Architecture Strategy - January 26, 2023
- Architecture Strategy and how to create One - January 24, 2023
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!
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