You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by de...@apache.org on 2010/11/18 17:59:42 UTC

svn commit: r1036530 - in /activemq/trunk/assembly/src: release/conf/jmx.access release/conf/jmx.password sample-conf/activemq-security.xml

Author: dejanb
Date: Thu Nov 18 16:59:42 2010
New Revision: 1036530

URL: http://svn.apache.org/viewvc?rev=1036530&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-3044 - adding example in activemq-security.xml

Added:
    activemq/trunk/assembly/src/release/conf/jmx.access
    activemq/trunk/assembly/src/release/conf/jmx.password
Modified:
    activemq/trunk/assembly/src/sample-conf/activemq-security.xml

Added: activemq/trunk/assembly/src/release/conf/jmx.access
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/release/conf/jmx.access?rev=1036530&view=auto
==============================================================================
--- activemq/trunk/assembly/src/release/conf/jmx.access (added)
+++ activemq/trunk/assembly/src/release/conf/jmx.access Thu Nov 18 16:59:42 2010
@@ -0,0 +1,18 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+
+admin readwrite
\ No newline at end of file

Added: activemq/trunk/assembly/src/release/conf/jmx.password
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/release/conf/jmx.password?rev=1036530&view=auto
==============================================================================
--- activemq/trunk/assembly/src/release/conf/jmx.password (added)
+++ activemq/trunk/assembly/src/release/conf/jmx.password Thu Nov 18 16:59:42 2010
@@ -0,0 +1,18 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+
+admin activemq
\ No newline at end of file

Modified: activemq/trunk/assembly/src/sample-conf/activemq-security.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/sample-conf/activemq-security.xml?rev=1036530&r1=1036529&r2=1036530&view=diff
==============================================================================
--- activemq/trunk/assembly/src/sample-conf/activemq-security.xml (original)
+++ activemq/trunk/assembly/src/sample-conf/activemq-security.xml Thu Nov 18 16:59:42 2010
@@ -65,6 +65,19 @@
 
   <broker useJmx="true" persistent="false" xmlns="http://activemq.apache.org/schema/core" destroyApplicationContextOnStop="true">
 
+    <managementContext>
+        <managementContext createConnector="true">
+            <property xmlns="http://www.springframework.org/schema/beans" name="environment">
+                <map xmlns="http://www.springframework.org/schema/beans">
+                    <entry xmlns="http://www.springframework.org/schema/beans" key="jmx.remote.x.password.file"
+                           value="conf/jmx.password"/>
+                    <entry xmlns="http://www.springframework.org/schema/beans" key="jmx.remote.x.access.file"
+                           value="conf/jmx.access"/>
+                </map>
+            </property>
+        </managementContext>
+    </managementContext>
+
     <plugins>
         <!-- Configure authentication; Username, passwords and groups -->
         <simpleAuthenticationPlugin>