title: copy file using spring integration
body: <p>how would you copy a file from one place to another using spring integration. in my case i want to copy a file outside the war to inside the war. here is the code snippet i am thinking about:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;beans:beans xmlns:beans="http://www.springframework.org/schema/beans" 
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns="http://www.springframework.org/schema/integration"
               xmlns:file="http://www.springframework.org/schema/integration/file"
               xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                                   http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-1.0.xsd
                                   http://www.springframework.org/schema/integration/file http://www.springframework.org/schema/integration/file/spring-integration-file-1.0.xsd
                                   http://www.springframework.org/schema/integration/mail http://www.springframework.org/schema/integration/mail/spring-integration-mail-1.0.xsd
               "&gt;
  
  &lt;poller max-messages-per-poll="1" id="defaultPoller" default="true"&gt;
      &lt;interval-trigger interval="1000"/&gt;
  &lt;/poller&gt;
  
  
  &lt;file:inbound-channel-adapter id="filesIn"    
                                filename-pattern="ha-jdbc-cluster1.xml"
                                directory="file:/etc/****/" /&gt;
  
  
  &lt;file:outbound-channel-adapter id="filesOut" directory="classpath:/WEB-INF/classes" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>but shamefully it does not work. does anyone know how to do it?</p>
  
  <p>thanks in advance .....</p>