on 03-31-2015 2:52 AM
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?
The spring issue can be solved by adding the jar "jsch-0.1.53.jar" in lib folder of springintegrationlibs extension.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.