You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by 林迪生 <di...@hotmail.com> on 2011/10/23 23:55:09 UTC
how I can add a user without restart the ftp server
Hi, there
I used the
FtpServer as an embedded ftp server in my spring auction application.
Everything is fine except after adding a user in the user.properites . I add a user by using the ProperitesManager and I found that if I don't restart the application the new account won't work. My question is how
I can add a user without restart the ftp server because the functions
relate to the ftpserver is just a small part. I don’t want to restart the whole
application just because of adding a new ftp account.
By the way,
if there any linux / windows commands to restart the embedded ftpserver after
adding a user without restart the whole application?
Thank you
very much.
Best Regard
Disheng Lin
Re: how I can add a user without restart the ftp server
Posted by Niklas Gustavsson <ni...@protocol7.com>.
2011/10/23 林迪生 <di...@hotmail.com>:
> I used the
> FtpServer as an embedded ftp server in my spring auction application.
> Everything is fine except after adding a user in the user.properites . I add a user by using the ProperitesManager and I found that if I don't restart the application the new account won't work. My question is how
> I can add a user without restart the ftp server because the functions
> relate to the ftpserver is just a small part. I don’t want to restart the whole
> application just because of adding a new ftp account.
The out-of-the-box user manager does not support reloading. But, you
could fairly simple write your own user manager that does.
> By the way,
> if there any linux / windows commands to restart the embedded ftpserver after
> adding a user without restart the whole application?
If your embedding FtpServer, you can just recreate it in your code
whenever your want to restart it.
/niklas