Announcement Announcement Module
Collapse
No announcement yet.
Samba inbound to outbound channel Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Do you know where I can find a sample XML configuration of smb SI adapter (session factory, outbound adapter)?

    Regards,
    Krzysztof

    Comment


    • #3
      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

      Comment


      • #4
        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

        Comment

        Working...
        X