I am creating a web application using Spring. One requirement is after processing a client request to create a XML document then send the XML via FTP to a FTP server and then get rid of the file.
What do you think the best strategy would by to creating a temp XML file, sending it with FTP and then getting rid of it?
I am creating a web application using Spring. One requirement is after processing a
Share
You don’t need a temp file at all. If your xml files are not big, you can use DOM to create the document in memory, and then write it directly to the FTP stream. Use Apache commons-net for easier ftp upload.