Sam,
See the bottom of the page at
http://mina.apache.org/ftpserver/ftplet.html for an example.
We are doing it with the following Spring snippet:
<ftp:server id="ftpServer">
....
<ftp:ftplets>
<ftp:ftplet name="yourFtpletName">
<ref bean="yourCustomFtplet"/>
</ftp:ftplet>
</ftp:ftplets>
hope this helps.
On Wed, Apr 13, 2011 at 9:43 AM, Sam Mizanin <[email protected]> wrote:
> Hi Niklas, .My class would implement the Ftplet interface and would like
> to use it with the xml configs. Thanks for the help.
>
> --- On Wed, 13/4/11, Niklas Gustavsson <[email protected]> wrote:
>
> From: Niklas Gustavsson <[email protected]>
> Subject: Re: Running your custom class
> To: [email protected]
> Cc: "Sam Mizanin" <[email protected]>
> Date: Wednesday, 13 April, 2011, 9:59 PM
>
> On Wed, Apr 13, 2011 at 4:51 PM, Sam Mizanin <[email protected]>
> wrote:
>> How to run your own custom class along with the apache FTP server?
>
> You need to qualify you're question somewhat more. Do you want to use
> it with the API or XML config? Which interface does your class
> implement?
>
> /niklas
>