FTPing a file from iSeries IFS
mrichards_mrichards Apr 23, 2009 2:12 AMHi Guys,
This is a 2 part question.
1) Can any body help me with an example of how to use the FTP Component to access the iSeries IFS.
I have the following in my xml config
<camel:from uri="ftp://username@host/root/env/DEVE/FileTransfer/*.txt?password=pword" />
<camel:to uri="file://E:/iseries/FileTransfer/DEVE/>
I get the following in the logs.
FtpConsumer - Connected and logged in to ftp://username@host:21
FtpConsumer - Unsupported type of FTPFile: username 24576 21/08/07 17:19:28 *FILE INVOKE (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 3854336 21/08/07 17:19:29 *FILE JUSRC (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 10514432 21/03/09 19:54:27 *FILE MIEADM60 (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 10645504 25/03/09 20:00:47 *FILE MIEADM60R (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 6320128 21/03/09 19:52:21 *FILE MIEADM601 (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 13922304 21/03/09 19:54:10 *FILE MIEMETA60 (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 11563008 21/03/09 19:52:46 *FILE MIEMETA601 (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 14708736 25/03/09 20:01:18 *FILE MIEMETA61R (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 24576 21/08/07 17:19:28 *FILE MVXRLA (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 24576 21/08/07 17:19:28 *FILE MVXSQL (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 100179968 21/03/09 19:55:05 *FILE MWP60 (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 103833600 25/03/09 19:59:57 *FILE MWP60R (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 86007808 21/03/09 19:51:57 *FILE MWP601 (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 81920 21/08/07 17:19:29 *FILE STRPGM (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 24576 21/08/07 17:19:28 *FILE SYSINFO (not a file or directory). It is skipped.
FtpConsumer - Unsupported type of FTPFile: username 45056 21/08/07 17:19:29 *FILE VERINF (not a file or directory). It is skipped.
These are iSeries library system files, not the ifs directory I want to conect to.
If I use a windows command prompt to run ftp to check the files.
I can use "quote site namefmt 1" command to use the ifs.
Which I can then navigate as required to get file I need.
Has anybody implemented / experimented using ftp on the as400 from camel?
Do you know how to get ifs files?
I would use jt400 component, but I'm getting org.apache.camel.NoSuchEndpointException: No endpoint could be found for: jt400:// ..... please check your classpath contains the needed camel component jar.
Which I'll be asking a seperate question for.
Cheers and Thanks in advance,
Mark