Wednesday, 15 April 2015

How to configure ambient framework within a Tridion CWA web app -



How to configure ambient framework within a Tridion CWA web app -

i'm adding ambient framework within existing tridion cwa java web application , have questions regarding mapping of java filters (ambient framework filter vs cwa filters)

in sdl cwa 2011 sp1 documentation (online portal) say:

16 - if intend utilize ambient info framework in combination cwa, open web.xml file in web-inf/ folder , add together following:

<filter> <filter-name>ambient info framework</filter-name> <filter-class>com.tridion.ambientdata.web.ambientdataservletfilter</filter-class> </filter> <filter-mapping> <filter-name>ambient info framework</filter-name> <servlet-name>content delivery web service</servlet-name> </filter-mapping>

i don't understand filter-mapping. in web-app there no content delivery web service.

my questions:

1 - means ambient info framework requires installation of content delivery web service work ? me filter-mapping of ambient info filter should same mapping of cwa request filter

<filter-mapping> <filter-name>cwa</filter-name> <url-pattern>my-mapping</url-pattern> </filter-mapping> <filter-mapping> <filter-name>ambient info framework</filter-name> <servlet-name>my-maping</servlet-name> </filter-mapping>

2 - pagefiledistributionfilter & binaryfiledistributionfilter ?

3 - there recommanded filter order ? cwa filters configured before ambient info filter ex ?

any help much appreciated. in advance.

on #1: it's documentation defect, should instead:

class="lang-xml prettyprint-override"><filter> <filter-name>ambient info framework</filter-name> <filter-class>com.tridion.ambientdata.web.ambientdataservletfilter</filter-class> </filter> <filter-mapping> <filter-name>ambient info framework</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>

on #2, yes still need 2 of course.

on #3, suspect should have ambient framework loaded first, recommendation non-cwa web apps (your filters utilize ambient framework, instance)

tridion tridion-2011 tridion-content-delivery ambient

No comments:

Post a Comment