cancel
Showing results for 
Search instead for 
Did you mean: 

Send orders via SFTP

Former Member
0 Kudos

We have a requirement to send order XML's via sftp to our ERP system. What is the best way to do this? After some research I thought that using the Spring integration adapter to build a sftp channel and send the files that way but I've run into an issue setting up the Spring Integration, here is the unanswered post on the error I get:

https://answers.sap.com/questions/12748405/sftpsessionfactory-spring-bean-error.html

Is there a better way to do this? Can I use some accelerator class or just build out a SFTPClient and send a file stream in a java class.

I guess whats the best way to upload a file via SFTP to a remote server?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member765541
Discoverer
0 Kudos

The spring issue can be solved by adding the jar "jsch-0.1.53.jar" in lib folder of springintegrationlibs extension.

Former Member
0 Kudos

Hi Ryan,

You should check out Data Hub: https://wiki.hybris.com/display/release5/Importing+and+Exporting+Using+the+Data+Hub

From your requirements, it seems you would need to develop an XML Adapter that would generate the file according to the needed format for ERP and put it on the SFTP. Here is a small guide to setup an export adapter https://wiki.hybris.com/display/release5/Target+System+Adapter+Creation+-+Version+5.5

You might consider looking for more information and examples, or try out the Data Hub training from Hybris.

Regards, Armands

Former Member
0 Kudos

Thanks Armands!

Thanks so much for your response, Data Hub looks like it could be very helpful generating the files. I will start looking into how we would use it. However the issues we have experienced is with connecting to the SFTP itself after the file is generated.

What is the best practice in hybris to upload a file to a ftp server (as the spring integration seems not to work, should I use just straight Java?)

-Ryan

Former Member
0 Kudos

Hi Ryan,

I think it doesn't matter how you do it. If Java approach works for you, then go with that! Maybe you need to do more investigation on why the Spring approach doesn't work in some other forums.

Regards, Armands