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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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