activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiang <>
Subject How to create persistence Topic
Date Fri, 11 May 2007 13:43:38 GMT

When I use code below to create Topic and Queue: 
jmxUrl = new
JMXConnector jmxc = JMXConnectorFactory.connect(jmxUrl); 
MBeanServerConnection mbsc = jmxc.getMBeanServerConnection(); 
ObjectName mBeanName = new
mbsc.invoke(mBeanName, "addTopic",new Object[]{"Hello"}, new String[]
mbsc.invoke(mBeanName, "addQueue",new Object[]{"World"}, new String[]

It is successful and I can see the topic/queue from the jconsole. But When
ActiveMQ 4.1.1 stop and restart , all the 
Topic and queue are lost. How can I create one Topic and save it then it 
can be used again next time when ActiveMQ is restarted.(I find Java Message
3.7 can do this . I just create one destination and stop Java Message3.7 .
Then I restart Message3.7 I find the destination I created still can be

View this message in context:
Sent from the ActiveMQ - Dev mailing list archive at

View raw message