title: Tomcat: use FTP connection via JNDI
body: <p>I need to access an FTP server from my Web Application which runs on Tomcat 6. I want to use JNDI to do this.</p>
  
  <p>How can I configure this FTP connection in Tomcat using JNDI? 
  What do I have to write into <code>web.xml</code> and <code>context.xml</code> to configure the resource? And how can I then access this connection from the Java source code?</p>