On 5/10/07, Jiang <[EMAIL PROTECTED]> wrote:

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.???

Are you aware that there is no need to explicitly create queues and
topics? Simply sending a message to a queue/topic will automatically
create it for you. Is there some special reason you're trying to
create queues/topics via JMX?

Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Reply via email to