Sending a message to a channel from file channel outbound adapter
hi everyone,
I have to send a message to channel from a file:outbound-channel-adapter .For example when a below adapter recieves a message i want to send a message to a channel to take the file that is created . I can do it by using a inbound channel adapter but then i have a specify a poller which keeps polling for the file and the poller never terminates .Can this be achieved by some way even if i use a inbound channel adapter can we terminate polling of the inbound adapter once it takes the file from the adapter
Code:
<file:outbound-channel-adapter channel="outputFileChannel" directory="C:\Test\Import"></file:outbound-channel-adapter>