Results 1 to 4 of 4

Thread: Samba inbound to outbound channel

  1. #1
    Join Date
    May 2012
    Posts
    2

    Default Samba inbound to outbound channel

    Hi,

    I am using the jcifs library with Spring Integration.
    My configuration looks like the following:

    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>
    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?

    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" />

  2. #2
    Join Date
    Oct 2008
    Location
    Warsaw, Poland
    Posts
    124

    Default

    Do you know where I can find a sample XML configuration of smb SI adapter (session factory, outbound adapter)?

    Regards,
    Krzysztof

  3. #3
    Join Date
    Aug 2005
    Location
    Atlanta
    Posts
    124

    Default

    Hi Krzysztof,

    Please take a look at the SMB Sample:

    https://github.com/SpringSource/spri...er/samples/smb

    While the sample is rather simplistic, I hope it provides some helpful guidance.

    Cheers,

    Gunnar
    Gunnar Hillert
    SpringSource/VMWare, Spring Integration team
    SpringSource Team - Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/ghillert
    http://blog.hillert.com/
    http://blog.springsource.com/author/ghillert/

  4. #4
    Join Date
    Oct 2008
    Location
    Warsaw, Poland
    Posts
    124

    Default

    Quote Originally Posted by ghillert View Post
    Please take a look at the SMB Sample:

    https://github.com/SpringSource/spri...er/samples/smb
    Thanks a lot. Having same example for smb-outbound-adapter will be very useful.

    Regards,
    Krzysztof

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •