Solved

Apache ActiveMQ and queues

Posted on 2014-03-27
3
406 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
ID: 39960478
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
ID: 39962148
Simply an excellent post.  One of the best I have ever seen on this forum.

Thank you
0
 
LVL 35

Expert Comment

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

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
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…
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

776 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