You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by David Latorre <dv...@gmail.com> on 2009/02/03 09:59:14 UTC

Re: [jira] Commented: (FTPSERVER-271) Embedding FtpServer in RC2 nearly impossible

Hello Claus,
 Thanks for the report as  the changes in the initialization and
configuration of FtpServer  may be not obvious for previous users.
Just to avoid confusion, in Niklas example he uses "default" as the listener
name because that is the name of the default listener on port 21,  since the
 listeners are stored in a Hashmap, the previous "default" listener will be
replaced with your new one ...
 I mean, if you changed the listener name to something more significative
you'd have two listeners up! The solution is to use setListeners().

Keep the good work with Camel (a great product!)


2009/2/3 Claus Ibsen (JIRA) <ji...@apache.org>

>
>    [
> https://issues.apache.org/jira/browse/FTPSERVER-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669875#action_12669875]
>
> Claus Ibsen commented on FTPSERVER-271:
> ---------------------------------------
>
> Thanks Niklas
>
> I was a bit frustrated that setting the port wasn't obvious how to do it.
> Didn't spot the listener factory, and got stuck by the protected setPort on
> the NioListtener.
>
> Thanks for the clarification. We can now upgrade to the RC2 in Camel.
> Thanks again for the prompt answer.
>
> /Claus
>
> > Embedding FtpServer in RC2 nearly impossible
> > --------------------------------------------
> >
> >                 Key: FTPSERVER-271
> >                 URL: https://issues.apache.org/jira/browse/FTPSERVER-271
> >             Project: FtpServer
> >          Issue Type: Bug
> >    Affects Versions: 1.0.0-RC2
> >            Reporter: Claus Ibsen
> >            Priority: Critical
> >
> > Hi
> > I might be a bit dissapointed now that when the upgrade from M3 to RC3
> with an embedded FtpServer is very complicated as you have changed the API
> too much.
> > Its hard to set the FTP port number that is a very reasonable
> configuration to do.
> > This was baiscally how you could do it in M3 but now you have to fight
> with a NioListener and no way a public setPort method exsists.
> > http://mina.apache.org/ftpserver/embedding-ftpserver.html
> > Could you please reconsider the RC2 to ease the embedding of FtpServer.
> Its very cool for unit testing other frameworks.
> > Claus Ibsen, a committer on the Apache Camel project
> > http://davsclaus.blogspot.com/
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>