users@glassfish.java.net

Re: SJSAS 9.1 stops responding on 8080

From: <glassfish_at_javadesktop.org>
Date: Tue, 20 Nov 2007 14:28:40 PST

Simple enable it per WAR:

<cache enabled="true" max-entries="1000" timeout-in-seconds="1800">
    <cache-mapping>
      <servlet-name>MediaServlet</servlet-name>
      <key-field name="id" scope="request.parameter"/>
      <key-field name="type" scope="request.parameter"/>
    </cache-mapping>
</cache>

The implementation was actually broke in 9.0 - I submitted bug https://glassfish.dev.java.net/issues/show_bug.cgi?id=3861 way back to fix this, then patched 9.0 myself.

Its a really handy and easy to use cache, useful for cache scaled images out of a database.

Thanks

Dan
[Message sent by forum member 'danielrhoades' (danielrhoades)]

http://forums.java.net/jive/thread.jspa?messageID=246412