Forums > Java

ftp in mxj example?

July 26, 2007 | 3:24 pm

Hello,

Just hoping somebody wouldn’t mind giving me shove in the right direction in getting ftp working within mxj?

thanks,
Simon


July 26, 2007 | 4:28 pm

On 07-07-26, at 0824, simon adcock wrote:
>
> Hello,
>
> Just hoping somebody wouldn’t mind giving me shove in the right
> direction in getting ftp working within mxj?
>
I used the apache jakarta commons net package to get telnet going
from within MXJ. A quick glance indicates that ftp is also supported
there.

http://jakarta.apache.org/commons/net/

r.


July 27, 2007 | 6:34 pm

I’d suggest that route also.

There are unsupported ftp handlers from sun, but they’re liable to
vanish without apology.


O

Ritchie Argue wrote:
> I used the apache jakarta commons net package to get telnet going from
> within MXJ. A quick glance indicates that ftp is also supported there.
>
> http://jakarta.apache.org/commons/net/
>


August 20, 2007 | 11:25 am

Thanks, I got it working. Unfortunetly Max grinds to a hault whilst it’s busy downloading/uploading! Don’t understand why though as Max is quite happy if I have some other ftp program running at the same time.


August 20, 2007 | 12:46 pm

Hi Simon,

It’ll be using blocking sockets – that is, it halts the whole thread
when waiting for data from the socket. Solution: use a separate thread.

Other FTP programs, as separate processes, run in a different thread by
definition (hence the lack of blocking).

In FTP apps it is quite common to have one thread that handles the
socket communication for control messages and another for the data
transfer (as these use different sockets).


Owen

simon adcock wrote:
> Thanks, I got it working. Unfortunetly Max grinds to a hault whilst
> it’s busy downloading/uploading! Don’t understand why though as Max
> is quite happy if I have some other ftp program running at the same
> time. _______________________________________________ java-dev
>


August 20, 2007 | 1:13 pm

Fantastic, it works really well now! Thank you.


Viewing 6 posts - 1 through 6 (of 6 total)