servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r389508 - in /incubator/servicemix/trunk/servicemix-assembly/src/main/release/conf: passwords.txt servicemix.xml
Date Tue, 28 Mar 2006 14:27:15 GMT
Author: gnodet
Date: Tue Mar 28 06:27:13 2006
New Revision: 389508

URL: http://svn.apache.org/viewcvs?rev=389508&view=rev
Log:
Show how to configure jmx authentication

Added:
    incubator/servicemix/trunk/servicemix-assembly/src/main/release/conf/passwords.txt
Modified:
    incubator/servicemix/trunk/servicemix-assembly/src/main/release/conf/servicemix.xml

Added: incubator/servicemix/trunk/servicemix-assembly/src/main/release/conf/passwords.txt
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-assembly/src/main/release/conf/passwords.txt?rev=389508&view=auto
==============================================================================
--- incubator/servicemix/trunk/servicemix-assembly/src/main/release/conf/passwords.txt (added)
+++ incubator/servicemix/trunk/servicemix-assembly/src/main/release/conf/passwords.txt Tue
Mar 28 06:27:13 2006
@@ -0,0 +1,5 @@
+#
+# This is the list of credentials for the jmx connector
+# Note that authentication is disabled by default
+#
+system=manager

Modified: incubator/servicemix/trunk/servicemix-assembly/src/main/release/conf/servicemix.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-assembly/src/main/release/conf/servicemix.xml?rev=389508&r1=389507&r2=389508&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-assembly/src/main/release/conf/servicemix.xml (original)
+++ incubator/servicemix/trunk/servicemix-assembly/src/main/release/conf/servicemix.xml Tue
Mar 28 06:27:13 2006
@@ -32,9 +32,21 @@
     <property name="daemon" value="true"/>
     <property name="environment">
       <map>
+        <!-- Uncomment the following line to enable authentication for jmx
+        <entry key="jmx.remote.authenticator" value-ref="jmxRemoteAuthenticator" />
+         -->
       </map>
     </property>
   </bean>
+  <bean id="jmxRemoteAuthenticator" class="mx4j.tools.remote.PasswordAuthenticator">
+    <constructor-arg>
+      <bean factory-method="getInputStream" factory-bean="jmxRemotePasswords" />
+    </constructor-arg>
+  </bean>
+  <bean id="jmxRemotePasswords"  factory-method="getResource" factory-bean="resourceLoader">
+    <constructor-arg value="classpath:passwords.txt"/>
+  </bean>
+  <bean id="resourceLoader" class="org.springframework.core.io.DefaultResourceLoader"
/>
 
   <!-- message broker -->
   <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean" depends-on="mbeanServer">



Mime
View raw message