Thanks for the response. But now, I'm really confused. I wasn't planning on having to write java code just to be able to use this server out of the box for my server needs. I want to replace IIS on my host machine for all of my clients and use the Apache FTP server for all FTP needs. I don't have off the wall requirements. Just a bunch of users that need to get to their domain directories (while I and other admins can FTP to any of the domain directories, etc.

I thought I could download the server, install it, create a configuration XML file or preferably a database and be up and running.

Now you're telling me that if I want virtual directories, I've got to write Java code?

I'm a veteran java programmer. But I have no knowledge of Spring or what it is (other than what I read, briefly). And if I'm writing code, that means I have to create classes... subclasses of what? Do I write my own main? How do I register my code.

But I'm diverging. I didn't make time on my schedule to write an FTP server or any part of one.

Even in your code, you didn't answer my fundamental question..... can I have one user read/write certain directories on the server (random directories, not all neatly nested under 'My Documents" or "MyRoot"), and have another user read/write a different set of directories (possibly with overlap to the directories of the first user?

In your code, you simply said, "load the config file" which I guess implies that somewhere all of that info I was describing is defined in the config file. But I still have no clue. The database schema doesn't seem to have any tables or fields that support that.

I think you need an end-to-end real-life installation/configuration example of using this server in a medium-large scale environment (other than single user, etc). I know it's new. And if you tell me it's just not ready for prime time yet, so be it. I'll be disappointed. But I'll wait.

But please tell me I don't have to learn a new Java framework and write a java library in order to use this server for the basic IIS-equivalent function. That's definitely not the model for any other server at Apache.

Thanks again.

Jerry


Niklas Gustavsson wrote:
On Sun, Mar 1, 2009 at 9:36 PM, Edward Scanzano <[email protected]> wrote:
Where do I put the configuration file if I am in 100% embedded mode?

How do I tell the ServerFactory (presume) where the configuration file is 
located?

Either you can use the FtpServer API directly, in which case you do
not use any configuration file. Or, you can use Spring to load the
configuration file for you, if so, it would look something like:

BeanFactory factory = new XmlBeanFactory(new
FileSystemResource("yourconfigfile.xml"));
FtpServer server = (FtpServer) factory.getBean("TheIdOfYourServer");

/niklas


Reply via email to