Author: markt Date: Thu Sep 29 13:28:08 2016 New Revision: 1762769 URL: http://svn.apache.org/viewvc?rev=1762769&view=rev Log: Add an example of using the classesToInitialize attribute of the JreMemoryLeakPreventionListener to the documentation web application. Based on a patch by Cris Berneburg.
Modified: tomcat/trunk/webapps/docs/changelog.xml tomcat/trunk/webapps/docs/config/listeners.xml Modified: tomcat/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1762769&r1=1762768&r2=1762769&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/changelog.xml (original) +++ tomcat/trunk/webapps/docs/changelog.xml Thu Sep 29 13:28:08 2016 @@ -153,6 +153,11 @@ configuration options with respect to the order in which resources are searched. (markt) </add> + <add> + Add an example of using the <code>classesToInitialize</code> attribute + of the <code>JreMemoryLeakPreventionListener</code> to the documentation + web application. Based on a patch by Cris Berneburg. (markt) + </add> </changelog> </subsection> <subsection name="jdbc-pool"> Modified: tomcat/trunk/webapps/docs/config/listeners.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/listeners.xml?rev=1762769&r1=1762768&r2=1762769&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/config/listeners.xml (original) +++ tomcat/trunk/webapps/docs/config/listeners.xml Thu Sep 29 13:28:08 2016 @@ -265,6 +265,22 @@ </attributes> + <subsection name="JreMemoryLeakPreventionListener Examples"> + + <p>The following is an example of how to configure the + <code>classesToInitialize</code> attribute of this listener.</p> + + <p>If this listener was configured in server.xml as:</p> + + <source><![CDATA[ <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" + classesToInitialize="oracle.jdbc.driver.OracleTimeoutThreadPerVM" />]]></source> + + <p>then the <code>OracleTimeoutThreadPerVM</code> class would be loaded + and initialized during listener startup instead of during request + processing.</p> + + </subsection> + </subsection> <subsection name="Security Lifecycle Listener - org.apache.catalina.security.SecurityListener"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org