On Thu, Sep 2, 2010 at 12:59 PM, Mahboob Alam Khalid
<[email protected]> wrote:

> But from last week I have been getting the error line "IOException 

> connection reset by peer".

 

But from last week I have been getting the errors for example problems
in uploading files by many users connected at the same time. Because
number of users is increasing, thus I decided to use Apache FtpServer
1.0.4
<http://mina.apache.org/ftpserver/apache-ftpserver-104-release.html> ,
but I found
http://mina.apache.org/ftpserver/embedding-ftpserver-in-5-minutes.html

 

> But in the new API, there is no function server.getFtplets()

 

There wasn't any method in the interface for this in 1.0.3 either.

However, the implementation contains this method and thus it will work
(both in 1.0.3 and 1.0.4).

 

How to get ftplets in the new API? That's the question.

 

 


 


------------------------------------------------------------------------
----------------------------------


I was using Apache FtpServer 1.0.0-M3  and mina-2.0.0-M3.


I was using the following configuration and 

 

XmlBeanFactory bf = new XmlBeanFactory(new
FileSystemResource(resourseXml));

FtpServer server = (FtpServer) bf.getBean("server");


server.start();


<server xmlns="http://mina.apache.org/ftpserver/spring/v1";

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

      xmlns:beans="http://www.springframework.org/schema/beans";

      xsi:schemaLocation="http://mina.apache.org/ftpserver/spring/v1
http://mina.apache.org/ftpserver/ftpserver-1.0.xsd";

      id="sundialIrradiationSite">

      <listeners>

            <nio-listener name="default" port="21">

               <ssl>

                <keystore file="./etc/ftpserver.jks" password="password"
/>

              </ssl>

            </nio-listener>

      </listeners>

      <ftplets>

            <ftplet name="ftplet1">

                  <beans:bean
class="nl.betronic.monet.ftpd.CompletionTrigger">

                        <beans:property   name="command"
value="/opt/monet-ftpd/bin/complete.sh" />

                  </beans:bean>

            </ftplet>

      </ftplets>

      <file-user-manager file="/opt/monet-ftpd/etc/users.properties" />

</server>

 

But from last week I have been getting the errors for example problems
in uploading files by many users connected at the same time. Because
number of users is increasing, thus I decided to use Apache FtpServer
1.0.4
<http://mina.apache.org/ftpserver/apache-ftpserver-104-release.html> ,
but I found
http://mina.apache.org/ftpserver/embedding-ftpserver-in-5-minutes.html

 

My question is that can I still use the above configuration?

 

But in the new API, there is no function server.getFtplets()

 

Because I was using the following code in the restart() trigger:

            Map<String, Ftplet> ftpletMap  = server.getFtplets();

            int connectedUsers = ((CompletionTrigger)
ftpletMap.get("ftplet1")).getConnectedUsers()

            ...

How to get ftplets in the new API? That's the question.

 

 

 

Mahboob A. Khalid 

Software Engineer


www.betronic.nl <http://www.betronic.nl/> 

M +31(0)6  341 64 677
T +31 (0)20 59 22 300
F  +31 (0)20 66 51 061

 

Reply via email to