Howdy,
The cachingAllowed property defaults to true.  It means the context can
cache resources, e.g. when you do ServletContext#getResource("/x") it
can cache the result in a Map whose key is "/x" and whose value is the
URL you get from the getResource call.  (This caching implementation is
not exactly what's actually done, I simplified it for illustration
purposes).

This speeds up future resource lookups at the expense of if you change
"/x" and cachingAllowed is true you won't pick up the modified version
of "/x".  So this can be viewed as a production versus development kind
of setting.

In the future, feel free to look at the source code:
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share
/org/apache/catalina/core/StandardContext.java?rev=HEAD&content-type=tex
t/vnd.viewcvs-markup

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Antony paul [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 26, 2003 9:19 AM
>To: [EMAIL PROTECTED]
>Subject: Re: What are the possible attributes of the Context element ?
>
>What is the use of caching allowed ? What is its default value if I
didn't
>set it in server.xml ?
>
>Antony
>
>>From: Tim Funk <[EMAIL PROTECTED]>
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>To: Tomcat Users List <[EMAIL PROTECTED]>
>>Subject: Re: What are the possible attributes of the Context element ?
>>Date: Thu, 26 Jun 2003 07:37:19 -0400
>>
>>Use the javadocs.
>>http://jakarta.apache.org/tomcat/tomcat-4.1-
>doc/catalina/docs/api/org/apache/catalina/core/StandardContext.html
>>
>>Anything public that starts with set can be included in server.xml
(within
>>the contraints of Digester)
>>
>>-Tim
>>
>>Antony wrote:
>>>When I searched the net I found some documents containing
>>>cachingAllowed="true",checkInterval="1" and so many.  I can't find
>>>documentation for these attributes in Tomcat 4.1 docs. What is the
use of
>>>the  attribute cachingAllowed and  checkInterval ?.  I saw the page
at
>>>jGuru Tomcat  FAQ http://www.jguru.com/faq/view.jsp?EID=24607 .
>>>
>>>The full element is included here.
>>><Context ClassName="org.apache.catalina.core.StandardContext"
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>_________________________________________________________________
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to