Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49945
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 4 Oct 2010 21:24:55 +0000 (21:24 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 4 Oct 2010 21:24:55 +0000 (21:24 +0000)
More JMX improvements.
Patch provided by Chamith Buddhika.

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

java/org/apache/catalina/core/mbeans-descriptors.xml
java/org/apache/catalina/startup/mbeans-descriptors.xml
webapps/docs/changelog.xml

index beb2ff3..fb68795 100644 (file)
                description="Should Tomcat attempt to terminate TimerThreads that have been started by the web application? Advisable to be used only in a development environment."
                type="boolean"/>
                
-    <attribute name="configFilePath"
+    <attribute name="configFile"
                description="Location of the context.xml resource or file"
-               type="java.lang.String"/>
+               type="java.net.URL"/>
                
     <attribute name="configured"
                description="The correctly configured flag for this Context."
                description="Create a JNDI naming context for this application?"
                is="true"
                type="boolean"/>
-               
-    <attribute name="valveObjectNames"
-               description="ObjectNames for the valves associated with this container"
-               type="[Ljavax.management.ObjectName;"
-               writeable="false"/>
 
     <attribute name="welcomeFiles"
                description="The welcome files for this context"
     
     <attribute name="asyncSupported"
                description="Does this valve support async reporting?"
+               is="true"
                type="boolean"/>
 
     <attribute name="className"
     <attribute name="managedResource"
                description="The managed resource this MBean is associated with"
                type="java.lang.Object"/>
-               
-    <attribute name="mbeansFile"
-               description="Optional mbeans config file."
-               type="java.lang.String"/>
       
     <attribute name="name"
                description="Unique name of this Engine"
                description="The name of the LifecycleState that this component is currently in"
                type="java.lang.String"/>
                
-    <attribute name="valveObjectNames"
-               description="ObjectNames for the valves associated with this container"
-               type="[Ljavax.management.ObjectName;"
-               writeable="false"/>  
-               
     <operation name="addChild"
                description="Add a virtual host"
                impact="ACTION"
           
     <attribute name="copyXML"
                description="Should XML files be copied to $CATALINA_BASE/conf/{engine}/{host} by default when a web application is deployed?"
+               is="true"
                type="boolean"/>
                
     <attribute name="createDirs"
     <attribute name="valveNames"
                description="Return the MBean Names of the Valves associated with this Host"
                type="[Ljava.lang.String;"/>
-      
-    <attribute name="valveObjectNames"
-               description="Return the MBean ObjectNames of the Valves associated with this Host"
-               type="[Ljavax.management.ObjectName;"/>
                
     <attribute name="workDir"
                description="Work Directory base for applications"
     <attribute name="xmlBase"
                description="The XML root for this Host."
                type="java.lang.String"/>   
-      
-    <attribute name="xmlNamespaceAware"
-               description="Attribute value used to turn on/off XML namespace awareness"
-               type="boolean"/>
-      
-    <attribute name="xmlValidation"
-               description="Attribute value used to turn on/off XML validation"
-               type="boolean"/> 
                
     <operation name="addAlias"
                description="Add an alias name that should be mapped to this Host"
                description="ObjectNames of the connectors"
                type="[Ljavax.management.ObjectName;"
                writeable="false" />
-      
-    <attribute name="containerName"
-               description="ObjectNames of the engine"
-               type="javax.management.ObjectName"
-               writeable="false" />
 
     <attribute name="managedResource"
                description="The managed resource this MBean is associated with"
          
     <attribute name="asyncSupported"
                description="Async support"
+               is="true"
                type="boolean"/>  
                
     <attribute name="available"
                description="The count of allocations that are currently active (even if they  are for the same instance, as will be true on a non-STM servlet)."
                type="int"
                writeable="false" />             
-           
-    <attribute name="engineName"
-               description="Fully qualified class name of the managed object"
-               type="java.lang.String"
-               writeable="false"/>
                
     <attribute name="errorCount"
                description="Error count"
     <attribute name="singleThreadModel"
                description="Does this servlet implement the SingleThreadModel interface?"
                type="boolean"
+               is="true"
                writeable="false" />
-          
-    <attribute name="startChildern"
-               description="Will children be started automatically when they are added?"
-               type="boolean" />
 
     <attribute name="stateManageable"
                description="State management support for this managed object"
index f4ca0fd..cffff34 100644 (file)
                
      <attribute name="copyXML"
                description="The copy XML config file flag for this component"
+               is="true"
                type="boolean"/>
                
      <attribute name="deployXML"
                description="The deploy XML config file flag for this component"
+               is="true"
                type="boolean"/>
                
      <attribute name="unpackWARs"
                description="The unpack WARs flag"
-               type="boolean"/>
-               
-    <attribute name="xmlNamespaceAware"
-               description="The Java class name of the Context configuration class we should use"
-               type="boolean"/>
-               
-    <attribute name="xmlValidation"
-               description="Set the validation feature of the XML parser used when parsing xml instances."
+               is="true"
                type="boolean"/>
                
     <operation name="addServiced"
index 493ac2c..b762f57 100644 (file)
         removed from the createStandardHost definition 
         of mbeans-descriptors.xml. (kfujino)
       </fix>
+      <fix>
+        <bug>49945</bug>: Continue improvements to JMX. Fix a handful of
+        attributes that were showing as Unavailable in JConsole. Patch provided
+        by Chamith Buddhika. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Coyote">