Hi

On Sat, Apr 12, 2008 at 2:35 PM, schelpet <[EMAIL PROTECTED]> wrote:
> Hello
>
>  I've build the FtpServer and created a NetBeans project with the all jar
>  files. I'm now trying to start the FtpServer but I'm not quite sure how to
>  do that (server configuration).

The simplest possible way if your embedding FtpServer is to do the following:

        FtpServer server = new FtpServer();
        server.start();

Now, you will probably want to customize some settings, in which case
the simplest way is something like (in this case changing the port of
which the default listener is accepting connections):
        DefaultFtpServerContext context = new DefaultFtpServerContext();
        MinaListener listener = (MinaListener) context.getListener("default");
        listener.setPort(2121);

        FtpServer server = new FtpServer(context);
        server.start();

Hope that helps!

/niklas

Reply via email to