Commits

Sebastian Sdorra committed 4c1f85c

added jmx support

Comments (0)

Files changed (3)

scm-server-jetty/pom.xml

     </dependency>
 
     <dependency>
-      <groupId>org.eclipse.jetty.aggregate</groupId>
+      <groupId>org.eclipse.jetty</groupId>
       <artifactId>jetty-server</artifactId>
       <version>${jetty.version}</version>
     </dependency>
 
     <dependency>
-      <groupId>org.eclipse.jetty.aggregate</groupId>
+      <groupId>org.eclipse.jetty</groupId>
       <artifactId>jetty-webapp</artifactId>
       <version>${jetty.version}</version>
     </dependency>
 
+    <dependency>
+      <groupId>org.eclipse.jetty</groupId>
+      <artifactId>jetty-jmx</artifactId>
+      <version>${jetty.version}</version>
+    </dependency>
+
   </dependencies>
 
   <properties>

scm-server/src/main/conf/server-config.xml

   </Call>
   -->
 
+  <!-- JMX support -->
+  <!--
+  <Call id="MBeanServer" class="java.lang.management.ManagementFactory"
+    name="getPlatformMBeanServer" />
+
+  <New id="MBeanContainer" class="org.eclipse.jetty.jmx.MBeanContainer">
+    <Arg>
+      <Ref id="MBeanServer" />
+    </Arg>
+  </New>
+
+  <Get id="Container" name="container">
+    <Call name="addEventListener">
+      <Arg>
+        <Ref id="MBeanContainer" />
+      </Arg>
+    </Call>
+  </Get>
+  -->
+
 </Configure>

scm-webapp/src/main/resources/logback.release.xml

 
 <configuration>
 
+  <jmxConfigurator />
+
   <define name="LOGDIR" class="sonia.scm.ScmLogFilePropertyDefiner" />
 
   <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">