Thursday, November 02, 2006

Caching tips

Caching

1. Installing cachemonitor:

For cluster env, create one virtual host with more ports depends on how many app servers you have.
For each app server, at web container transport chains, define a new chain to associate the given port.
Then, each port monitor each app server.

Install dynache monitor .ear file from InstallableApp folder, accept default settings.
Map modules to application servers: Select both cluster and web server.

Re-generate plugin-cfg.xml file, and propagate it.
Restart the web server.

http(s)://<hostname>:<portN>/cachemonitor

2. cachespec.xml
For caching jsp, if there is no any Id to put in cache-in section,
use :

<class>servlet</class>
<name>com.ibm.commerce.server.RequestServlet.class</name>
<property name="save-attributes">false</property>
<property name="store-cookies">false</property>
<cache-id>
<component id="" type="pathinfo">
<required>true</required>
<value>/MY_VIEW_COMMAND</value>
</component>

No comments:

Post a Comment