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
<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
<int-file:outbound-channel-adapter id=”outJMS” channel=”outJMSChannel” destination=”jmsQueue”/>
Figure 22-14. Outbound JMS Adapter
Page Visitors: 13052