Virtual Destinations in ActiveMQ not working

I find Activemq’s documentation pathetic at times. Consider this document which talks about activemq virtual destinations - you’d imagine they’d EXPLICITLY write about the most important thing - THEY ARE DISABLED BY DEFAULT and wont enable unless you add the code snippet below. So if you’re one of the people who have tried pulling out their hair only to realize this - I feel you :)

To enable virtual destinations you need to include the following in activemq.xml

   <destinationInterceptors>
      <virtualDestinationInterceptor>
        <virtualDestinations>
        <virtualTopic name="VirtualTopic.>" prefix="Consumer.*."/> 
        </virtualDestinations>
      </virtualDestinationInterceptor>
    </destinationInterceptors>
 
45
Kudos
 
45
Kudos

Now read this

Removing Database Level Locks in HIVE

Recently we started noticing “CREATE TABLE” taking incredibly long amounts of time to execute and after which they’d fail. A more detailed look in to the issue revealed that we had upgraded HIVE and the new version, which now allowed... Continue →