I have embedded the FTP server into a JBoss application. When the
client issues a RETR command, I read a database and get a byte[] which
I the transfer to the client.

How can I transfer the data to the client with the onDownloadStart
method without opening / closing data connections?

Regards

On 25 November 2010 11:07, John Hartnup <[email protected]> wrote:
> On 25 November 2010 10:49, Aidan Diffey <[email protected]> wrote:
>
>> Okay..  Now I am stumped.
>>
>> How do I create a custom FTPLet that implements the onDownloadStart
>> method in PASSIVE mode?
>>
>>
> Reading both your posts, I think you're confused about what
> onDownloadStart() does.
>
> As far as I understand, when a RETR command is handled:
> - The server iterates through every configured ftplet, calling
> onDownloadStart() for each one
> - Then it performs the data transfer
> - Then it calls onDownloadEnd() for each ftplet
>
> This happens regardless of whether the transfer is active or passive.
>
> I wouldn't expect you to normally mess around with opening/closing/handling
> data connections in onDownloadStart()
>
> At a higher level, what are you hoping to achieve?
>
>
> --
> "There is no way to peace; peace is the way"
>

Reply via email to