views:

48

answers:

0

I need a place to store files for several application systems. The following is how I make this system.

  1. Use FTP to upload a file. Set up an FTP server first using FileZilla. Open a count for a client to connect and upload files.

  2. Use Java to build web service which can store file’s information including: file name, version number, file type, and all file information. You will need a database to store those information.

Using Netbeans I easily developed a Java Web Service project. I can use PHP FTP function upload a file to my file server, and then connect Web Service to store the file's information.

There are several configuration info for Web Service project, such as Database connection, FTP Server, File path, etc. My question is, what is the right way to make a war file, which can be deployed anywhere.