2 Replies Latest reply on May 18, 2009 7:56 AM by gmotts_gary.motts

    Are Virtual Consumers Durable?




      I've read an ActiveMQ article describing why not to use traditional JMS durable subscriptions at http://activemq.apache.org/virtual-destinations.html. In place of durable subscribers it suggests to use Virtual Topics and a Virtual Consumer Queue. I'm testing this using Camel 1.5.4. and have implemented a route from a Virtual Topic to a Virtual Consumer as:




      With the following added to the activemq.xml configuration file:



      <broker xmlns="http://activemq.apache.org/schema/core">












      <virtualTopic name=">" prefix="VirtualTopicConsumers.*." >










      So my question is does this virtual consumer provide durability? For this route definition, will the topic hold the subscription until the consumer is connected? In preliminary tests I cannot confirm this, on the ActiveMQ Administration console the above example does not show the consumer as a "durable subscriber", which is probablly correct?


      Seeking anyone's advice or experience with this subject.






      Edited by: gmotts on May 15, 2009 4:33 PM