Skip to content

Instantly share code, notes, and snippets.

@cignextraining
Created April 22, 2018 16:55
Show Gist options
  • Save cignextraining/0436172e3895cb557675d9c894622d94 to your computer and use it in GitHub Desktop.
Save cignextraining/0436172e3895cb557675d9c894622d94 to your computer and use it in GitHub Desktop.
Adapters
<!-- Inbound Adapters -->
<!-- Inbound File Adaptor which listens to d://inbound location for any files -->
<int-file:inbound-channel-adapter id="producer-file-adapter" channel="messageChannel" directory="file:d://si-inbound" prevent-duplicates="true">
<int:poller fixed-rate="5000" />
</int-file:inbound-channel-adapter>
<!-- Inbound Standard Input Adapter which acts as a Message producer. A Spring Integration wrapped Java Standard input stream -->
<int-stream:stdin-channel-adapter id="producer"
channel="messageChannel" />
<!-- Poller - Don't change this property -->
<!-- This poller is used by inbound adapter i.e. stdin-channel-adapter to determine how often to check Standard Input stream for text -->
<int:poller id="defaultPoller" default="true"
max-messages-per-poll="5" fixed-rate="200" />
<!-- Outbound Adapters -->
<int-file:outbound-channel-adapter channel="messageChannel" id="consumer-file-adapter" directory="file:d://si-outbound" />
<!-- Direct channel without the queue, Pollable channel with the queue -->
<int:channel id="messageChannel">
</int:channel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment