[jboss-cvs] JBoss Messaging SVN: r7295 - in trunk/examples/jms: jmx/src/org/jboss/jms/example and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jun 10 11:33:16 EDT 2009
Author: jmesnil
Date: 2009-06-10 11:33:16 -0400 (Wed, 10 Jun 2009)
New Revision: 7295
Modified:
trunk/examples/jms/jmx/readme.html
trunk/examples/jms/jmx/src/org/jboss/jms/example/JMXExample.java
trunk/examples/jms/message-counters/readme.html
trunk/examples/jms/message-counters/src/org/jboss/jms/example/MessageCounterExample.java
Log:
JBMESSAGING-1603: Rename resource MBeans and controls
* removed MBean references from example's readmes and comments
Modified: trunk/examples/jms/jmx/readme.html
===================================================================
--- trunk/examples/jms/jmx/readme.html 2009-06-10 14:30:03 UTC (rev 7294)
+++ trunk/examples/jms/jmx/readme.html 2009-06-10 15:33:16 UTC (rev 7295)
@@ -84,12 +84,12 @@
<code>TextMessage messageReceived = (TextMessage) messageConsumer.receive(5000);</code>
</pre>
- <li>We create a <a href="../../../docs/api/org/jboss/messaging/jms/server/management/JMSQueueControlMBean.html">JMSQueueControlMBean</a> proxy to manage the queue on the server</li>
+ <li>We create a <a href="../../../docs/api/org/jboss/messaging/jms/server/management/JMSQueueControl.html">JMSQueueControl</a> proxy to manage the queue on the server</li>
<pre>
- <code>JMSQueueControlMBean queueControl = (JMSQueueControlMBean)MBeanServerInvocationHandler.newProxyInstance(mbsc,
- on,
- JMSQueueControlMBean.class,
- false);
+ <code>JMSQueueControl queueControl = (JMSQueueControl)MBeanServerInvocationHandler.newProxyInstance(mbsc,
+ on,
+ JMSQueueControl.class,
+ false);
</code>
</pre>
Modified: trunk/examples/jms/jmx/src/org/jboss/jms/example/JMXExample.java
===================================================================
--- trunk/examples/jms/jmx/src/org/jboss/jms/example/JMXExample.java 2009-06-10 14:30:03 UTC (rev 7294)
+++ trunk/examples/jms/jmx/src/org/jboss/jms/example/JMXExample.java 2009-06-10 15:33:16 UTC (rev 7295)
@@ -96,11 +96,11 @@
// Step 11. Retrieve the MBeanServerConnection
MBeanServerConnection mbsc = connector.getMBeanServerConnection();
- // Step 12. Create a JMSQueueControlMBean proxy to manage the queue on the server
+ // Step 12. Create a JMSQueueControl proxy to manage the queue on the server
JMSQueueControl queueControl = (JMSQueueControl)MBeanServerInvocationHandler.newProxyInstance(mbsc,
- on,
- JMSQueueControl.class,
- false);
+ on,
+ JMSQueueControl.class,
+ false);
// Step 13. Display the number of messages in the queue
System.out.println(queueControl.getName() + " contains " + queueControl.getMessageCount() + " messages");
Modified: trunk/examples/jms/message-counters/readme.html
===================================================================
--- trunk/examples/jms/message-counters/readme.html 2009-06-10 14:30:03 UTC (rev 7294)
+++ trunk/examples/jms/message-counters/readme.html 2009-06-10 15:33:16 UTC (rev 7295)
@@ -73,10 +73,10 @@
<code>ObjectName on = ObjectNames.getJMSQueueObjectName(queue.getQueueName());
JMXConnector connector = JMXConnectorFactory.connect(new JMXServiceURL(JMX_URL), new HashMap());
MBeanServerConnection mbsc = connector.getMBeanServerConnection();
- JMSQueueControlMBean queueControl = (JMSQueueControlMBean)MBeanServerInvocationHandler.newProxyInstance(mbsc,
- on,
- JMSQueueControlMBean.class,
- false);</code>
+ JMSQueueControl queueControl = (JMSQueueControl)MBeanServerInvocationHandler.newProxyInstance(mbsc,
+ on,
+ JMSQueueControl.class,
+ false);</code>
</pre>
<li>We retrieve the message counter and display them. MessageCounters are retrieved as <code>JSON Strings</code> for portability reason (wether
Modified: trunk/examples/jms/message-counters/src/org/jboss/jms/example/MessageCounterExample.java
===================================================================
--- trunk/examples/jms/message-counters/src/org/jboss/jms/example/MessageCounterExample.java 2009-06-10 14:30:03 UTC (rev 7294)
+++ trunk/examples/jms/message-counters/src/org/jboss/jms/example/MessageCounterExample.java 2009-06-10 15:33:16 UTC (rev 7295)
@@ -87,7 +87,7 @@
System.out.println("Sleep a little bit to have the queue sampled...");
Thread.sleep(3000);
- // Step 7. Use JMX to retrieve the message counters using the JMSQueueControlMBean
+ // Step 7. Use JMX to retrieve the message counters using the JMSQueueControl
ObjectName on = ObjectNames.getJMSQueueObjectName(queue.getQueueName());
JMXConnector connector = JMXConnectorFactory.connect(new JMXServiceURL(JMX_URL), new HashMap());
MBeanServerConnection mbsc = connector.getMBeanServerConnection();
More information about the jboss-cvs-commits
mailing list