Hi,

I'd like to add a small information text in each reply message, and I
tried to do that in the afterCommand method:
session.write(new DefaultFtpReply(reply.code(), reply.message()+" my
text appended))
return FtpletResult.DEFAULT

But I get an error. On the client when logging in:
421 Service not available, remote server has closed connection
Login failed.
No control connection for command: Transport endpoint is not connected

The problem comes from writing the ftp reply to the session. But how
can I append some text to the reply message then?

Thanks in advance

Raphaƫl

PS: I've also just seen that when I have my afterCommand just
returning FtpletResult/DEFAULT,
the actions in my onLogin method are not executed or have no effect (I
change the workingDirectory of the fsview in that mehod)



-- 
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org

Reply via email to