Can topic messages be made persistent in activemq?

2019-04-10 11:21发布

问题:

I am very new to JMS and ESB. I am using activemq as JMS and mule as ESB. When i am forwarding the messages from one queue to another with jms connector parameter "persistentDelivery" as "true" it retains the messages in the target queue after activemq re-start. But in case of forwarding messages from one topic to another,the messages are not retained in the target topic after restart.

Is there any limitation for persistence of messages in case of topic in activemq?

Thanks in advance.

Regards, Arijit

回答1:

topics are different in that messages are only retained if there is a durable consumer.

see these for more info...

http://activemq.apache.org/how-do-durable-queues-and-topics-work.html

http://stefanlearninglog.blogspot.com/2009/07/persistent-jms-topics-using-activemq.html



标签: activemq