What for a message browser would be available for activeMQ? - activemq

Is there a message / queue browser for activeMQ available?
I tried Hermes JMS, but it is not working for activeMQ 5.10, anymore.
We need a browser where we can export a message into XML.
Any suggestions?
Thanks and regards.

You can try hawtio which is a web console that has plugins for various technologies, such as ActiveMQ.
hawtio is created by the people who also created Camel and ActiveMQ and thus has great plugins for those.
http://hawt.io/

Hermes is able to connect to AMQ but perhaps you need to use older AMQ libs on the client/hermes side, like v5.7.0 or similar.
Hawt.io is great to read/move/browse/delete/send messages but you may need additional tools to export/import data.
You cannot export a JMS message to XML in a generic way. What you can do is to export the payload to a file (which may be XML).
To export messages into a files, you can use a command line tool called A. Then you can write a -b tcp://localhost:61616 -c 20 -o file.xml MY.QUEUE and you will have 20 messages exported to file-1.xml, file-2.xml .. file-20.xml.
Disclaimer: I am the author of "A".

Related

Is there any way to inspect RabbitMQ messages that are persisted? Where those are stored?

Just doing some testing on local machine, would like somewhere to inspect messages that are published and persisted by RabbitMQ (deliveryMode = 2). Or at least to have a time when messages was actually persisted. First try was RabbitMQ admin management, went trough all options and closest what i have found is following:
Database directory: /usr/local/var/lib/rabbitmq/mnesia/rabbit#localhost
There i can found many files with rdq extenstions and many logs file, but can't actually see nothing.
you can't, RabbitMQ uses a custom database and it is not possible to browse it.
you can only browse the RabbitMQ definitions as "queues", "users", "exchanges" etc.. but not the messages.
By default, the messages index is inside:
/usr/local/var/lib/rabbitmq/mnesia/rabbit#localhost/queues/HASHQUEUE
The only way it is as suggested by #Johansson
It's possible to manually inspect your message in the queue via the Management interface. Press on the queue that has the message, and then "Get message". If you mark it as "requeue", RabbitMQ puts it back to the queue in the same order.
https://www.cloudamqp.com/blog/2015-05-27-part3-rabbitmq-for-beginners_the-management-interface.html

How to set up JMS in Glassfish Administration Console

I'm trying to set up the Connection Factory and the Queue for JMS through the GlassFish administration console, but I can't the that option in the list!
Any clue? I'm probably missing something, I'm quite new to GF.
Looks like you haven't installed jms add-on.
At Admin console page under "Update Center" tabs click "Available Add-Ons" check "glassfish-jms" and "glassfish-jms-l10n" options and click "install".
Restart your glassfish server. "JMS Resources" will appear.
It's easier to set up the glassfish xml, and then you can review the results in the console. First, make sure you have your resource adapter deployed under applications. For ActiveMQ, that would be activemq rar that you can find on their website.
Take a look at my question here which has everything you need:
Need clarification on JMS vs ActiveMQ bean/resource configuration

Message Processing from DLQ ActiveMQ

I am using ActiveMQ 5.5.1 broker and want to generate a report from DLQ. Please advise if i can achieve this from admin console or should be programmatic.
ActiveMQ admin console provides a feature to view report in XML format and also provides graphical view for it.
If you only want it in HTML format you will need to do it programmaticaly.

activemq where is the destinations tag?

I am reading this book "Activemq In Action". In the section (appendix D) where they are trying to configure the activemq, it is mentioned that
<destinations>
<topic name="topic1" physicalName="jms.topic1"/>
</destinations?
But I can't locate any tags containing "destinations" in the file activemq.xml. I tried both the versions 5.4.3 (as the version 5.2.0 used in the book could not be downloaded) and the latest version 5.9.0. None have any section containing destinations tag. Now if I want to run the examples in the book (like the chat application), how can I configure the activemq?
Thanks
an ActiveMQ server will create any topic or queue that receives a message if it doesn't exist already. You dont need to create them previously, just run the server, send the message and that's all.
I haven't read the book but I think you don't need to find that file (i couldn't find it in my server either) in order to run any sample app pointing to an ActiveMQ server.

ActiveMQ command line equivalent to tibrvlisten

I was wondering if the community here knew of a way to listen to topics on an ActiveMQ broker via the command line similar to TibcoRV's 'tibrvlisten'
Thanks
there are some command line tools, but they don't offer send/listen support...
your best bet is to use one of the following to create messages, listeners and browse message data
JMX - http://activemq.apache.org/jmx.html
web console - http://activemq.apache.org/web-console.html
JMeter - http://jmeter.apache.org/