Can I view the contents of an AMQ theme in any way?

I am trying to view the contents of a topic using activemq-admin.

Here is what I am trying:

./activemq-admin browse --amqurl tcp://localhost:61616 my.topic

This is what I get as output:

Java Runtime: Sun Microsystems Inc. 1.6.0_24 /usr/lib/jvm/java-6-sun-1.6.0.24/jre
Heap sizes: current=62848k  free=62190k  max=932096k
JVM args: -Dactivemq.classpath=/home/pc/dev/apache-activemq-5.3.1/conf; -Dactivemq.home=/home/pc/dev/apache-activemq-5.3.1 -Dactivemq.base=/home/pc/dev/apache-activemq-5.3.1
ACTIVEMQ_HOME: /home/pc/dev/apache-activemq-5.3.1
ACTIVEMQ_BASE: /home/pc/dev/apache-activemq-5.3.1

This is not what I want. I want to somehow see the messages in the queue in raw form. Is it possible?

Thank,

+5
source share
3 answers

You cannot view the contents of topics due to the nature of what a theme is. Messages are sent, and if there are any subscribers, everyone receives a message at this point in time. Messages are usually not saved (with some exceptions that are not relevant here).

, . - , , .

<destinationInterceptors>
    <virtualDestinationInterceptor>
        <virtualDestinations>
            <compositeTopic name="events" forwardOnly="false">
                <forwardTo>
                    <queue physicalName="events.thatHaveHappened" />
                </forwardTo>
            </compositeTopic>
        </virtualDestinations>
    </virtualDestinationInterceptor>
</destinationInterceptors>

JMX -.

+4
+1

This third-party tool allows you to subscribe to topics and check posts in a topic:

http://sourceforge.net/projects/activemqbrowser/

Connect to the server, and then subscribe to the desired topic. It worked fine for me to see message details and payloads.

+1
source

All Articles