Hi,
I'm trying to get Servlet caching to work properly in SJAS 9.0u1, here is the (partial) cache configuration in sun-web.xml:
<cache-mapping>
<servlet-name>MediaServlet</servlet-name>
<key-field name="id" scope="request.parameter"/>
<key-field name="type" scope="request.parameter"/>
</cache-mapping>
The caching works by ID fine, that is images served by the cache are correct but it seems to ignore the "type" parameter, for example both these requests get the same cache object:
media?id=1&type=thumbnail
media?id=1&type=medium
If I change the order of the key-fields in the cache-mapping putting "type" first then all the images come out the cache the same (for the same type, i.e. type=medium) regardless of the "id".
It seems the server is ignoring any more than one key-field mappings.
Any ideas? If not I'll log it as a bug.
Thanks
Dan
[Message sent by forum member 'danielrhoades' (danielrhoades)]
http://forums.java.net/jive/thread.jspa?messageID=217342