Hi,
I am using the jcifs library with Spring Integration.
My configuration looks like the following:
Now, my question is how can I use this inbound channel 'smbInChannel' with an outbound-channel using a 'service activator? i.e is it possible to download directly e.g. from SMB to another outbound channel?Code:<si:channel id="smbInChannel"> <si:queue/> </si:channel> <smb:inbound-channel-adapter id="smbInbound" channel="smbInChannel" session-factory="smbSessionFactory" cache-sessions="true" charset="UTF-8" auto-create-local-directory="true" delete-remote-files="true" filename-pattern="*-new.xml" local-directory="${file.location}" remote-file-separator="/" temporary-file-suffix=".tmp" remote-directory="${remote.location}"> <si:poller fixed-rate="${polling.interval}" /> </smb:inbound-channel-adapter>
I've done similar thing with the 'file' adapter successfully :
Code:<si:channel id="fileInChannel" /> <file:inbound-channel-adapter channel="fileInChannel" directory="${file.location}" prevent-duplicates="true" filename-pattern="*-new.xml"> <si:poller fixed-delay="${polling.interval}"></si:poller> </file:inbound-channel-adapter> <si:service-activator input-channel="fileInChannel" output-channel="fileOutChannel" ref="fileProcessor" method="process" /> <si:channel id="fileOutChannel" />


Reply With Quote
