Set up the Ambient Data Framework client in a web application by editing its web.xml.
Procedure
- Navigate to the WEB-INF/ folder of your web application.
- 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>
- Restart the web application.