Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 Badass: Making Users Awesome this week in the Game Development 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