O'Reilly logo

Mastering Spring Application Development by Anjana Mankale

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Spring FTP using an outbound channel example

In this section, lets look at a simple scenario of transferring files from Location1 to a remote location, Location2. For the sake of clarity, let's define them as follows:

  • Location1: d:\folder1
  • Location2: d:\folder2

Let's create a simple application in Spring with the Spring integration package, to accomplish the task of transferring files from Location1 to Location2. We need to have two main files to do this; the first one is the configuration file applicationContext.xml and the second is a Java class file that will intimate the Spring integration framework to upload the file to the remote location.

The applicationContext.xml file will have the entire necessary bean configuration with XMLNS required to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required