Feedback on https://issues.apache.org/bugzilla/show_bug.cgi?id=50991
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 31 Mar 2011 13:02:20 +0000 (13:02 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 31 Mar 2011 13:02:20 +0000 (13:02 +0000)
Change the default

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1087286 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/deploy/ContextResource.java
webapps/docs/changelog.xml
webapps/docs/config/context.xml

index dbe8526..1470bff 100644 (file)
@@ -87,7 +87,7 @@ public class ContextResource extends ResourceBase {
      * the clean-up of resources that would otherwise happen via garbage
      * collection.
      */
-    private String closeMethod = "close";
+    private String closeMethod = null;
     
     public String getCloseMethod() {
         return closeMethod;
index 9af035c..71dbc54 100644 (file)
       </fix>
       <add>
         Provide a configuration option that lets the close method to be used for
-        a JNDI Resource to be defined by the user. (markt)
+        a JNDI Resource to be defined by the user. This change also disables
+        using the close method unless one is explicitly defined for the
+        resource. (markt)
       </add>
       <fix>
         Correctly track changes to context.xml files and trigger redeployment
index 863af40..e8a5210 100644 (file)
       <attribute name="closeMethod" required="false">
         <p>Name of zero-argument method to call on the resource when it is no
         longer required to speed up clean-up of resources that would otherwise
-        happen as part of garbage collection. If not specificed, the default
-        value of <code>close</code> is used.</p>
+        happen as part of garbage collection. If not specificed, no default is
+        defined and no close method will be called.</p>
       </attribute>
 
       <attribute name="description" required="false">