Documentation Center

Adding the Ambient Data Framework client to your Java web application

Set up the Ambient Data Framework client in a web application by editing its web.xml.

Procedure

  1. Navigate to the WEB-INF/ folder of your web application.
  2. Enable the Ambient Data Framework by adding the following to your web.xml:
    <filter>
      <filter-name>Ambient Client Filter</filter-name>
      <filter-class>com.sdl.web.ambient.client.AmbientClientFilter</filter-class>
    </filter>
    
    <filter-mapping>
      <filter-name>Ambient Client Filter</filter-name>
      <url-pattern>/*</url-pattern>
    </filter-mapping>
  3. Restart the web application.