Solved

Apache ActiveMQ and queues

Posted on 2014-03-27
3
411 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

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 …
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

830 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