summaryrefslogtreecommitdiff
path: root/qpid/doc/book/src/java-broker/Java-Broker-High-Availability.xml
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2012-11-26 15:16:00 +0000
committerRobert Gemmell <robbie@apache.org>2012-11-26 15:16:00 +0000
commitaadfb457b5fe678b7ac48b91894348043653593a (patch)
tree51d0b0e7bacf0e35a321fcbc74609b3d7b7805c7 /qpid/doc/book/src/java-broker/Java-Broker-High-Availability.xml
parentb590d7e2921f1cb0844271972c4e627ff3aef053 (diff)
downloadqpid-python-aadfb457b5fe678b7ac48b91894348043653593a.tar.gz
QPID-4474: quote the name within the JMX ObjectName for the BDBHAMessageStore MBean
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1413676 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/doc/book/src/java-broker/Java-Broker-High-Availability.xml')
-rw-r--r--qpid/doc/book/src/java-broker/Java-Broker-High-Availability.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/doc/book/src/java-broker/Java-Broker-High-Availability.xml b/qpid/doc/book/src/java-broker/Java-Broker-High-Availability.xml
index 618533dc5f..7ea9dae38a 100644
--- a/qpid/doc/book/src/java-broker/Java-Broker-High-Availability.xml
+++ b/qpid/doc/book/src/java-broker/Java-Broker-High-Availability.xml
@@ -506,7 +506,7 @@ amqp://guest:guest@clientid/test?brokerlist='tcp://localhost:5672?connectdelay='
<para>Qpid exposes the BDB HA store information via its JMX interface and provides APIs to remove a Node from
the group, update a Node IP address, and assign a Node as the designated primary.</para>
<para>An instance of the <classname>BDBHAMessageStore</classname> MBean is instantiated by the broker for the each virtualhost using the HA store.</para>
- <para>The reference to this MBean can be obtained via JMX API using an ObjectName like <emphasis>org.apache.qpid:type=BDBHAMessageStore,name=&lt;virtualhost name&gt;</emphasis>
+ <para>The reference to this MBean can be obtained via JMX API using an ObjectName like <emphasis>org.apache.qpid:type=BDBHAMessageStore,name=&quot;&lt;virtualhost name&gt;&quot;</emphasis>
where &lt;virtualhost name&gt; is the name of a specific virtualhost on the broker.</para>
<table border="1">
<title>Mbean <classname>BDBHAMessageStore</classname> attributes</title>
@@ -630,7 +630,7 @@ JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:
JMXConnector jmxConnector = JMXConnectorFactory.connect(url, environment);
MBeanServerConnection mbsc = jmxConnector.getMBeanServerConnection();
-ObjectName queueObjectName = new ObjectName("org.apache.qpid:type=BDBHAMessageStore,name=test");
+ObjectName queueObjectName = new ObjectName("org.apache.qpid:type=BDBHAMessageStore,name=\"test\"");
String state = (String)mbsc.getAttribute(queueObjectName, "NodeState");
System.out.println("Node state:" + state);