Commit 2234cfc7 authored by Stephen Seltzer's avatar Stephen Seltzer

Enables ActiveMQ JMX support.

parent 8ffdf6af
......@@ -28,11 +28,15 @@
path="{{ activemq_inst_directory }}/{{ activemq_service_name }}"
owner="{{ activemq_user }}" group="{{ activemq_group }}" state=link
- name: enable JMX
lineinfile: dest=/opt/activemq/conf/activemq.xml backrefs=yes
regexp='broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost"'
line=' <broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.data}" useJmx="true">'
- name: enable the management console
lineinfile: dest=/opt/activemq/conf/activemq.xml backrefs=yes
regexp='managementContext createConnector="false"'
line=' <managementContext createConnector="true"/>'
line=' <managementContext createConnector="true" rmiServerPort="1098" connectorPort="1099"/>'
notify:
- restart activemq
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment