title: How to configure ambient framework within a Tridion CWA web app
body: <p>I'm adding ambient framework within an existing Tridion CWA Java web application and I have some questions regarding the mapping of java filters (ambient framework filter vs CWA filters)</p>
  
  <p>In the SDL CWA 2011 SP1 documentation (online portal) they say: </p>
  
  <blockquote>
    <p>16 - If you intend to use the Ambient Data Framework in combination
    with CWA, also open the web.xml file in the WEB-INF/ folder and add
    the following:</p>
  
  <pre><code>&lt;filter&gt;
    &lt;filter-name&gt;Ambient Data Framework&lt;/filter-name&gt;
    &lt;filter-class&gt;com.tridion.ambientdata.web.AmbientDataServletFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
    &lt;filter-name&gt;Ambient Data Framework&lt;/filter-name&gt;
    &lt;servlet-name&gt;Content Delivery Web service&lt;/servlet-name&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  </blockquote>
  
  <p>I don't understand this filter-mapping. In my web-app there is no Content Delivery Web Service.</p>
  
  <p><strong>My questions:</strong> </p>
  
  <p><strong>1 - Does it means Ambient Data Framework requires the installation of the Content Delivery Web Service to work</strong> ? For me the filter-mapping of Ambient Data filter should be the same as the mapping of CWA request filter</p>
  
  <pre><code>&lt;filter-mapping&gt;
    &lt;filter-name&gt;cwa&lt;/filter-name&gt;
    &lt;url-pattern&gt;my-mapping&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  &lt;filter-mapping&gt;
     &lt;filter-name&gt;Ambient Data Framework&lt;/filter-name&gt;
     &lt;servlet-name&gt;my-maping&lt;/servlet-name&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p><strong>2 - What about PageFileDistributionFilter &amp; BinaryFileDistributionFilter ?</strong></p>
  
  <p><strong>3 - Is there a recommanded filter order ? CWA filters configured before Ambient Data filter for ex ?</strong></p>
  
  <p>Any help would be much appreciated. Thanks in advance.</p>