activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiang <zju_...@163.com>
Subject How to create BrokerView object
Date Thu, 10 May 2007 12:47:48 GMT

I start ActiveMQ on 10.4.1.64 (expose jmxrmi at 1099) . I want to add
queue/topic  to the server from my pc (10.4.1.60) .  Code is below :
jmxUrl = new
JMXServiceURL("service:jmx:rmi:///jndi/rmi://10.4.1.64:1099/jmxrmi");
JMXConnector jmxc = JMXConnectorFactory.connect(jmxUrl); 
MBeanServerConnection mbsc = jmxc.getMBeanServerConnection(); 
ObjectName mBeanName = new
ObjectName("org.apache.activemq:BrokerName=localhost,Type=Broker"); 
MBeanInfo mBeanInfo = mbsc.getMBeanInfo(mBeanName);

the mBeanInfo is get successfully. And in debug console , I can see the
className of mBeanInfo is BrokerView. 
How can I create one BrokerView object that presents the object just run in
the ActiveMQ  Server. Then I can use 
addQueue or addTopic of the BrokerView object to add queue/topic to the
ActiveMQ server remotely.???
Thanks . 
-- 
View this message in context: http://www.nabble.com/How-to-create-BrokerView-object-tf3721428s2354.html#a10412673
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message