There is actually nothing inconsistent about it. The SFTP uses different library that has an explicit proxy setting where FTP uses commons-net which uses different mechanism to connect through proxy. You can read more here: http://wiki.apache.org/commons/Net/F...AskedQuestions. Scroll down to "Does FTPClient support FTP connections through an FTP proxy server?" as well as http://marc.info/?l=jakarta-commons-...7944806547&w=2
Basically all you need to do is set two system properties before creating ApplicationContext.
For example one way of doing it would be:
Code:
System.getProperties().put( "socksProxyPort", "1080");
System.getProperties().put( "socksProxyHost" ,"proxy.host.address");
ApplicationContext context = . . .