File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB and FTP" Watch "EJB and FTP" New topic


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

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
I agree. Here's the link:
subject: EJB and FTP
jQuery in Action, 3rd edition