users@glassfish.java.net

Re: SJSAS 9.1 stops responding on 8080

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 20 Nov 2007 17:24:16 -0500

Hi,

glassfish_at_javadesktop.org wrote:
> 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>
>

Now I recall :-)

> 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.


You should use the Grizzly Cache instead, which is much faster. Just
edit ${glassfish.home}/domains/domain1/config/domain.xml and set the
<http-file-cache globally-enabled="true" file-cache="true" ... />. Works
  with static resources :-)

Thanks

-- Jeanfrancois


>
> Thanks
>
> Dan
> [Message sent by forum member 'danielrhoades' (danielrhoades)]
>
> http://forums.java.net/jive/thread.jspa?messageID=246412
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>