FtpServer
  1. FtpServer
  2. FTPSERVER-196

Add an example of FTPserver deployed to an application server.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0-M4
    • Component/s: Server
    • Labels:
      None

      Description

      An example should be added where FtpServer is deployed to an application server.
      Easiest way I can see:

      • Deploy a web application containing Ftpserver Jars in WEB-INF/lib
      • Configure a Listener in this application which will instantiate FtpServer and call the start() or stop() methods as adequate.

      An example is provided!

        Activity

        Hide
        David Latorre added a comment -

        Netbeans sample project on how to deploy FtpServer to an application server. It is easy enough to create an Eclipse project with these files (you just copy the contents of 'src/java' directory into Eclipse's source root and web.xml to WEB-INF/web.xml.

        Although I tested it with Glassfish, it should work on most application servers or Servlet containers. Actually, it seems that a bug on Glassfish 2 (according to MINA guys) could prevent FtpServer from running on Windows machines. But it is working perfectly on our linux servers.

        src/java/ftpd-typical.xml should be edited to point to the appropiate keystore and user.properties files ( in resources/ users.properties there's an example of a user.properties files included in the source of Ftpserver core).

        Show
        David Latorre added a comment - Netbeans sample project on how to deploy FtpServer to an application server. It is easy enough to create an Eclipse project with these files (you just copy the contents of 'src/java' directory into Eclipse's source root and web.xml to WEB-INF/web.xml. Although I tested it with Glassfish, it should work on most application servers or Servlet containers. Actually, it seems that a bug on Glassfish 2 (according to MINA guys) could prevent FtpServer from running on Windows machines. But it is working perfectly on our linux servers. src/java/ftpd-typical.xml should be edited to point to the appropiate keystore and user.properties files ( in resources/ users.properties there's an example of a user.properties files included in the source of Ftpserver core).
        Hide
        Niklas Gustavsson added a comment -

        Thanks a lot! I've merged this with an example I had a commited it in revision 706396.

        Show
        Niklas Gustavsson added a comment - Thanks a lot! I've merged this with an example I had a commited it in revision 706396.

          People

          • Assignee:
            Niklas Gustavsson
            Reporter:
            David Latorre
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development