geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r326905 - /geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatManagerImpl.java
Date Thu, 20 Oct 2005 14:03:13 GMT
Author: jgenender
Date: Thu Oct 20 07:03:09 2005
New Revision: 326905

URL: http://svn.apache.org/viewcvs?rev=326905&view=rev
Log:
Fixed invalid attribute

Modified:
    geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatManagerImpl.java

Modified: geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatManagerImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatManagerImpl.java?rev=326905&r1=326904&r2=326905&view=diff
==============================================================================
--- geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatManagerImpl.java
(original)
+++ geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatManagerImpl.java
Thu Oct 20 07:03:09 2005
@@ -88,11 +88,12 @@
         connector.setAttribute("host", host);
         connector.setAttribute("port", new Integer(port));
         connector.setAttribute("maxThreads", new Integer(50));
-        connector.setAttribute("acceptCount", new Integer(100));
+        connector.setAttribute("acceptQueueSize", new Integer(100));
         connector.setReferencePattern(ConnectorGBean.CONNECTOR_CONTAINER_REFERENCE, container);
         ObjectName config = Util.getConfiguration(kernel, container);
         try {
             kernel.invoke(config, "addGBean", new Object[]{connector, Boolean.FALSE}, new
String[]{GBeanData.class.getName(), boolean.class.getName()});
+            kernel.invoke(config, "saveState");
         } catch (Exception e) {
             log.error("Unable to add GBean ", e);
             return null;
@@ -148,6 +149,7 @@
             }
             ObjectName config = Util.getConfiguration(kernel, name);
             kernel.invoke(config, "removeGBean", new Object[]{name}, new String[]{ObjectName.class.getName()});
+            kernel.invoke(config, "saveState");
         } catch (GBeanNotFoundException e) {
             log.warn("No such GBean '"+objectName+"'"); //todo: what if we want to remove
a failed GBean?
         } catch (Exception e) {



Mime
View raw message