Created
April 22, 2018 16:55
-
-
Save cignextraining/0436172e3895cb557675d9c894622d94 to your computer and use it in GitHub Desktop.
Adapters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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