activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiang <zju_...@163.com>
Subject Re: How to create persistence Topic
Date Sat, 12 May 2007 13:42:10 GMT

jlim,  which means the topic created by createTopic(when ActiveMQ is running
) is a temp topic (which can be saved or not ) ??? 


jlim wrote:
> 
> Hi,
> 
> As of Activemq 4.1, you can configure startup destinations to  specify 
> which destinations are automatically created when the broker starts
> 
> http://activemq.apache.org/configure-startup-destinations.html
> 
> Regards,
> Jonas
> 
> 
> Jiang wrote:
>> When I use code below to create Topic and Queue: 
>> jmxUrl = new
>> JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi");
>> JMXConnector jmxc = JMXConnectorFactory.connect(jmxUrl); 
>> MBeanServerConnection mbsc = jmxc.getMBeanServerConnection(); 
>> ObjectName mBeanName = new
>> ObjectName("org.apache.activemq:BrokerName=localhost,Type=Broker"); 
>> mbsc.invoke(mBeanName, "addTopic",new Object[]{"Hello"}, new String[]
>> {"java.lang.String"});
>> mbsc.invoke(mBeanName, "addQueue",new Object[]{"World"}, new String[]
>> {"java.lang.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
>> used.)
>>
>> Thanks.
>>   
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-create-persistence-Topic-tf3727521s2354.html#a10446014
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message