Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB and FTP

 
John R Roberts
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic