Home


Element <name>

The <name> element is an important part of the cache entry. Take another look at the name element in the first ConsumerDirect cache entry in Example | -16.

Example 2-16 Specifying the Struts controller Servlet in a cachespec entry

<cache-entry>
<class>servlet</class> <name>com.ibm.commerce.struts.ECActionServlet.class</name>

To cache the output of the Commerce main action servlet we need the servlet's fully qualified package name so that the runtime DynaCache engine can locate it in the Web container and then start to filter it. In the sample cachespec.xml, this is provided as:

<name>com.ibm.commerce.struts.ECActionServlet.class</name>

The com.ibm.commerce.struts.ECActionServlet1 is an important servlet in the context of the Commerce runtime architecture and is explained next.

1This was <name>com.ibm.commerce.server.RequestServlet.class</name> in earlier versions of WebSphere Commerce.

+

Search Tips   |   Advanced Search