aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes EJB and FTP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB and FTP" Watch "EJB and FTP" New topic
Author

EJB and FTP

John R Roberts
Ranch Hand

Joined: Dec 27, 2006
Posts: 36
Hi, is is possible to connect to an FTP server from within an App Server?
I have a session bean that calls a worker class to retrieve files via FTP but I keep getting the following exception


I can run the same code outside the App server and it works fine.
we are using Jakarta Commons FTP library.

Suggestions are apprecriated.
Richard Waldicott
Greenhorn

Joined: Jun 10, 2007
Posts: 9
from the error message looks like the process may not have permissions to bind to a local socket. try using passive mode instead. another good component can be found here

http://www.jscape.com/sftp/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB and FTP
 
Similar Threads
java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream r
I won't open a connection to
Move file from Windows to FtpServer(Unix)
FTP Problem
FTP issue (using org.apache.commons.net.ftp)