XMII and File Transfer Handling for Beginners
Ways in which one can handle file in xMII.
xMII file handling is quite cool and one can handle almost any sort of file in xMII. Basic things includes XML , images and HTML handling. But here we are discussing some advanced concepts i.e. FTP.
We have got a requirement where we have to upload file(s) on the server. There are two possible ways of achieving it:
-
Using the inbuilt xMII FTP handling.
-
Using the JAVA functionality to upload the files without bringing xMII into picture
xMII Built-in Functionality for FTP
xMII addresses most of the things required for file handling. For handling a system in FTP way, one needs to install an FTP server on it. I personally prefer Filezilla for its simplicity and robustness.
So after installing the Filezilla server, one can access the the machine in FTP way. Here we’ll discuss a scenario where we need to get the number of files on a folder in a remote folder. For this we’ll use the FTPGetFileList action block to get the no. of files on a remote folder on an FTP server.
The output of this will be something like this
Handling the file From Java functionality
We were actually working on xMII FTP thing to get the requirement fulfilled until my teammate Praveen came up with an idea of doing it in the JAVA way. It is quite cool and suits our requirement.
JAVA is a powerful language and does all sorts of things. It can be a very powerful alternative for this requirement except when xMII based authentication comes into picture.
I won’t be discussing it here as it may go beyond the scope of SDN and it is which one should look into JAVA forums.
(We actually used a JSP file which calls a jar file sitting on the server and the JAR file handles he saving of the files on the server). Although there are lot more options that one can use to handle files using JAVA and xMII too.


