2

I am having the spring configuration to read the files from ftp location as below.

<bean id="fileReader" class="org.springframework.batch.item.file.FlatFileItemReader">
    <property name="resource"
        value="ftp://FTPADMINTEST:12456@ftp.mycompany.net/IT/SE/box/dev/downloaded/CHI-20863.csv"/>

-------------

using above configuration i could read files.But recently we created mount point for this location to access directly these files. Created mount point for this location is /BOX/DEV. Now i am trying to access same using the below configuration using the mount pint path.

<bean id="fileReader" class="org.springframework.batch.item.file.FlatFileItemReader">
    <property name="resource"
        value="file://BOX/DEV/CHI-20863.csv"/>

But could not read files and getting the exception: Input resource does not exist class path resource [/BOX/DEV/CHI-20863.csv]

Plese suggest me how to configure to use files using mount point location.

Ayyappak
  • 183
  • 2
  • 4
  • 18

1 Answers1

0

Is //BOX/DEV/ local path to which the mount is done? If it is a mount you got to use proper local path. Otherwise you have to use ftp path like you did in first one.

reddyvaribabu
  • 868
  • 2
  • 7
  • 10