File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: EJB and FTP
 
Similar Threads
FTP issue (using org.apache.commons.net.ftp)
I won't open a connection to
FTP Problem
java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream r
Move file from Windows to FtpServer(Unix)