?
Solved

Apache ActiveMQ and queues

Posted on 2014-03-27
3
Medium Priority
?
442 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 36

Accepted Solution

by:
mccarl earned 2000 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 36

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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month8 days, 16 hours left to enroll

765 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