mina-ftpserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niklas Gustavsson" <nik...@protocol7.com>
Subject Re: Ftplet.onDisconnect() method call
Date Tue, 20 May 2008 13:24:13 GMT
Thanks for reporting this issue. I've added a JIRA issue to keep track of it:
https://issues.apache.org/jira/browse/FTPSERVER-135

I've also commited a fix, could you please verify that it solves the
issue for you?

/niklas

On Tue, May 20, 2008 at 10:20 AM, eric DEBIEF <eric.debief@renilg.com> wrote:
> Hi all,
> I've written an Ftplet for our application and I figure out that the
> Ftplet .onDisconnect() method was not called. So I browse the commands code
> and didn't found any call to onDisconnect() method. So I've added this code
> to the QUIT.java file :
>
> "
> // call Ftplet.onDisconnect() method
>                Ftplet ftpletContainer = context.getFtpletContainer();
>                try
>                {
>                        ftpletContainer.onDisconnect(session.getFtpletSession());
>                }
>                catch (Exception e)
>                {
>                        LOG.debug("Ftplet container threw exception", e);
>                }
>
> And declare the LOG object in the class like in other commands.
> " private final Logger LOG = LoggerFactory.getLogger(QUIT.class);"
> At this time, it works well for me.
>
> FtpServer : extracted from subversion last week.
> pom.xml version = 1.0.0-SNAPSHOT.
>
> Regards,
> Eric.
>

Mime
View raw message