Thursday, 15 May 2014

Spring integration Java DSL : creating sftp outbound adapter -


I want to create a flow using DSL is the flow channel and sftp outbound adapter Sends on How do I send file mode? REPLACE

  Integration (More channels ()) .handle (Sftp.outboundAdapter (sessionfactory ()) Kkarsrset (Varnsetkfeyrnam ( "UTF-8")) .remoteFileSeparator ( "\\") .remoteDirectory (beaconSendProperties.getFtpLocation ()) Kfailnampratishtapan ( "Pelodkgetnam ()") Koto Krelet Directory (true) KuseTemporaryFileName (true) KtemporaryFileSufix ( ". Tranferring") KfileNameExpression ( "Failnamnamkrta")). Channels (Upload Channels ()) .get ();  

first . Channel (uploadChannel ()) After the outbound adapter does not mean and will not be accessible. Because File Transfer email messenger a way MessageHandler and no forwarding the downstream flow Answer is not.

Reload overloaded is Sftp.outbound can be achieved as the second argument to the adapter Method:

  Khandl (Sftpkoutbonddptr (Sessionfktori (), Filiksissmode. REPLACE)  

No comments:

Post a Comment