[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Apache ActiveMQ and queues

Posted on 2014-03-27
3
Medium Priority
?
454 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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…
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.
Suggested Courses

649 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