jmaki performance enhancer

View: New views
2 Messages — Rating Filter:   Alert me  

jmaki performance enhancer

by Carla Mott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I noticed the following when reviewing the jMaki performance enhancer
document.

<snip>
Setup

In Java a servlet needs to be configured in your web.xml file to serve
cached resources which are kept in memory. The servlet class is included
in the jmaki library is:  jmaki.runtime.CombinedResourceServlet

You will need to add the servlet mapping should be:
/cr

If you use a servlet mapping other than the one above you will need to
configure the jMaki runtime with the new location.
<snip>

What does that mean?  What needs to be configured beyond the mapping to
the new name if anything?

So if I have the following do I need to do anything else?

  <servlet-name>jMakiCombineResourceServlet</servlet-name>
  <servlet-class>jmaki.runtime.CombinedResourceServlet</servlet-class>
  <init-param>
  <param-name>jmaki-combined-resources-service</param-name>
  <param-value>/jmaki</param-value>
  </init-param>
  <servlet-mapping>
  <servlet-name>jMakiCombineResourceServlet</servlet-name>
  <url-pattern>/jmaki</url-pattern>
  </servlet-mapping>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: jmaki performance enhancer

by Sloan Bowman-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can make it to anything you want. However if you you specify  
anything other than the default, /cr,  you will need to set the  
context parameter jmaki-combined-resources-service to the mapping you  
are using. In my example I set it up using /jmaki as our friend did.  
It works just fine that way. Does that make sense to you?

--SB

On Oct 6, 2008, at 7:37 PM, Carla Mott wrote:

> I noticed the following when reviewing the jMaki performance  
> enhancer document.
>
> <snip>
> Setup
>
> In Java a servlet needs to be configured in your web.xml file to  
> serve cached resources which are kept in memory. The servlet class  
> is included in the jmaki library is:  
> jmaki.runtime.CombinedResourceServlet
>
> You will need to add the servlet mapping should be:
> /cr
>
> If you use a servlet mapping other than the one above you will need  
> to configure the jMaki runtime with the new location.
> <snip>
>
> What does that mean?  What needs to be configured beyond the  
> mapping to the new name if anything?
>
> So if I have the following do I need to do anything else?
>
>  <servlet-name>jMakiCombineResourceServlet</servlet-name>
>  <servlet-class>jmaki.runtime.CombinedResourceServlet</servlet-class>
>  <init-param>
>  <param-name>jmaki-combined-resources-service</param-name>
>  <param-value>/jmaki</param-value>
>  </init-param>
>  <servlet-mapping>
>  <servlet-name>jMakiCombineResourceServlet</servlet-name>
>  <url-pattern>/jmaki</url-pattern>
>  </servlet-mapping>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...


smime.p7s (2K) Download Attachment
LightInTheBox - Buy quality products at wholesale price!