Solved

Apache ActiveMQ and queues

Posted on 2014-03-27
3
391 Views
Last Modified: 2014-03-29
I am new to ActiveMQ, and am having great difficulty with  the ActiveMQ documentation.

I installed ActiveMQ, and started the web console.  I also enabled logging.

From there I created a queue from the web console.  The queue is durable in the sense that if I restart Active, the queue still exists.

However, I can not find any xml files that contain any way to change the properties of the queue.  I did a 'find' command and found hits in the audit log, and kahadb, but no where else.

What file is the properties of this queue (not an on the fly queue, or a queue created by the java code, but a queue created by the web console)  

Also, where are the xml properties kept for a queue created by any means.
0
Comment
Question by:Anthony Lucia
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
Comment Utility
I am new to ActiveMQ, and am having great difficulty with  the ActiveMQ documentation.
Yeah, the documentation certainly isn't its strongest point!! :)

However, I can not find any xml files that contain any way to change the properties of the queue.
Yep, that's because there ISN'T any such file. The queue data store is held in the kahadb directory, and this is why the queue persists through a restart of ActiveMQ, but this only holds the messages that are currently in the queue (that is not *entirely* true but good enough to think like that for now).

The only place where you can change properties of queues (or topics) is in the main activemq.xml configuration file. And there doesn't *have* to be an entry in there for every queue in the system. It works like this... All queues have certain default properties, but then activemq.xml can define rules so that if a queue's name matches that rule, certain properties (different to the default) are applied to that queue.

As an example, albeit not a great one but somewhere to start, have a look at the default activemq.xml and you should be able to see a line (hopefully, if nothing changed since the version that I have) like this...
<policyEntry queue=">" producerFlowControl="true" memoryLimit="1mb">

Open in new window

Note the queue=">" part, where the > is a wildcard so that this line applies to all queues, whether they exist currently, or whether they get created in the future. Check out this link for more information on the wildcard support in ActiveMQ.


If all the above has helped you too much, maybe you can let me know what sort of "properties" you are interested in setting on your queue and I can help further.
0
 

Author Closing Comment

by:Anthony Lucia
Comment Utility
Simply an excellent post.  One of the best I have ever seen on this forum.

Thank you
0
 
LVL 35

Expert Comment

by:mccarl
Comment Utility
Your welcome, it's good to hear that someone appreciates the effort put in to an answer!  :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now