2 Replies Latest reply on May 18, 2009 7:56 AM by Gary Motts

    Are Virtual Consumers Durable?

    Gary Motts Novice

      Hi,

       

      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:

       

      from("activemq:topic:VirtualTopic.topic").to("activemq:Consumer.example.VirtualTopic.topic");

       

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

       

       

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

       

       

      <destinationInterceptors>

       

       

      <virtualDestinationInterceptor>

       

       

      <virtualDestinations>

       

       

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

       

       

      </virtualDestinations>

       

       

      </virtualDestinationInterceptor>

       

      </destinationInterceptors>

       

      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.

       

      Thanks.

       

      -Gary

       

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