Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-27 Thread skao
Hi Tim, Hmmm... That is interesting. Let me try to produce a new message in activemq and see if I can see the json message body. On the other hand, the plain text message is working fine that I can see the message body. Will try another json message to verify. Regards, Samuel -- Sent from: h

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-27 Thread Tim Bain
Two different methods of viewing the message content both indicate that there's no message body? That sounds like maybe your messages don't have bodies... I'm not an expert in Camel, but I've done enough with it to believe that the method you found will capture the full message (headers and body),

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-26 Thread skao
This is exactly what I added in activemq.xml as below. It only created the header Info instead of the real message body. It looks exactly the same when I review it in activeMQ console. No detail message body. xmlns:camel="http://camel.apache.org/schema/spring";

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-26 Thread skao
Hi JB, I have found a article to to backup enqueued messages when you need the body of messages. https://stackoverflow.com/questions/43625848/how-to-see-dequeued-messages-in-activemq Here is what I changed in active.xml as below: xmlns:camel="http://camel.apache.org/schema/spring"; http://cam

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-21 Thread skao
Hi JB, Thanks a lot for the reply. We are thinking about the mirror queued to get all the en-queued messages from producer and not consumed it. It is working fine so far but it is kind of risky if we kept those mirror messages in activeMQ without consuming them which might crash the activeMQ serv

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-21 Thread skao
Hi Tim, I will review these link below and get an idea of these solution. https://activemq.apache.org/interceptors and https://activemq.apache.org/developing-plugins. Thanks a lot for your help. Thansk, Simon -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-21 Thread Tim Bain
Also, to state the obvious, depending on the load on your broker this could be a massive amount of logging. Be sure you configure your logging system appropriately (log roll-over in place, a sufficiently large disk to store the volume of logs at the point where they start to roll over, etc.). Tim

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-21 Thread Tim Bain
You could write a plugin that would log the content of each message as it's received; just log it and then call the corresponding super.messageDelivered() method. Relevant information is at https://activemq.apache.org/interceptors and https://activemq.apache.org/developing-plugins. Tim On Thu, Ma

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-21 Thread Jean-Baptiste Onofre
Not directly. You can always use advisory to be notify when a message is consumed. But again, once it has been consumed, the message is gone. Regards JB > Le 21 mai 2020 à 09:05, skao a écrit : > > Hi François, > > Thanks a lot for your reply. > > Like JB mention earlier, if the consumer de

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-21 Thread skao
Hi François, Thanks a lot for your reply. Like JB mention earlier, if the consumer de-queue the message and then it won't show up in kahaDB. Then there is no way for me to see the hahadb file to review the en-queue messages. I would like to see all messages even though they have been de-queued b

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread Francois Papon
Hi, Yes I was talking about the Webconsole. You just have to configure your ActiveMQ instance to the kahadb location in the conf/activemq.xml regards, François fpa...@apache.org Le 21/05/2020 à 04:47, skao a écrit : > Hi François, > > Are you talking about the ActiveMQ console ? > If not, cou

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread Jean-Baptiste Onofre
By the way, if you are using queue, a message is dispatched to one and only one consumer (that’s different for topic). So, your setup is probably not what you want. I would review your use case and setup. Regards JB > Le 21 mai 2020 à 07:17, skao a écrit : > > Hi JB, > > I would like to see

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread skao
Hi JB, That is bad news for me. The only thing that we can do maybe is the mirror queued in activeMQ. Let me see if I can make it working. Anyway, thanks a lot for your help. Regards, Samuel -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread Jean-Baptiste Onofre
Hi, You should understand better how ActiveMQ and JMS works. Once a consumer consumed a message, the message is not in KahaDB anymore. Regards JB > Le 21 mai 2020 à 07:17, skao a écrit : > > Hi JB, > > I would like to see all messages in activeMQ even though they have been > de-queued by con

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread skao
Hi JB, I would like to see all messages in activeMQ even though they have been de-queued by consumers already. Our users kept saying that they received duplicate messaged when they de-queued the messages. I would like to see all messages to confirm it. Will the activeMQ console still kept those d

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread Jean-Baptiste Onofre
OK, so, regarding your use case, I don’t think it’s a good idea or require to use the exporter. Just use browse or the web console (http://host:8161/admin by default). You can see all details about messages per destination, if they are persistent or not (so in kahadb o

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread skao
Hi JB, Thanks a lot for your help . Let me try this one below. ./bin/export kahadb --source /some/directory/kahadb/ --target ~/some/directory/output.xml Basically I would like to see the message body from activeMQ in kahadb folder and see the detail Info of each message but they are in binary fil

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread Jean-Baptiste Onofre
ActiveMQ browse doesn’t take kahadb location as argument but directly the destination: ./bin/activemq browse FOO If you want to extract/dump kahadb, use the kahadb exporter: ./bin/export kahadb --source /some/directory/kahadb/ --target ~/some/directory/output.xml What’s your use case exactly

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread skao
Hi François, Are you talking about the ActiveMQ console ? If not, could you please explain the detail of how to use Webconsole t open the KahaDB db.data file ? Thansk, Simon -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread skao
Got error when I tried to browse the queue in activeMQ. activemq browse --amqurl tcp://x:61616 MESF_TO_MII_CFR INFO: Loading '/home/jboss/apache-activemq-5.15.0//bin/env' INFO: Using java '/usr/java/jdk1.8.0_144/bin/java' Java Runtime: Oracle Corporation 1.8.0_144 /usr/java/jdk1.8.0_1

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread skao
Hi JB, This is what I did in the Linux. Did I do something wrong to view the db.data file ? Please kindly advise. Regards, Samuel cd /home/jboss/apache-activemq-5.15.0/bin $ *./activemq browse /hom/jboss/apache-activemq-5.15.0/data/kahadb/db.data* INFO: Loading '/home/jboss/apache-activemq-5.1

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread Jean-Baptiste Onofre
Hi, Basically you can do bin/activemq browse FOO Where FOO is the destination name. Regards JB > Le 20 mai 2020 à 18:16, skao a écrit : > > Hi JB, > > I never used bin/activemq browse before but I could Google it a little bit. > > Thanks a lot. > > Regards, > Samuel > > > > -- > Sent fr

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread skao
Hi JB, I never used bin/activemq browse before but I could Google it a little bit. Thanks a lot. Regards, Samuel -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread Jean-Baptiste Onofre
Hi, It’s not really steps, it’s more "alternative". For instance, you can use bin/activemq browse. Regards JB > Le 20 mai 2020 à 16:36, skao a écrit : > > Hi JB, > > Thanks a lot for your help. > Could you be more specific on these steps below ? > For instance, how to use the bin/activemq sc

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread skao
Hi JB, Thanks a lot for your help. Could you be more specific on these steps below ? For instance, how to use the bin/activemq script ? Thansk, Samuel 1. Use JMX to browse the queue (directly or via REST thanks to Jolokia) 2. Use admin console 3. Use any client (including REST) to browse 4. Use

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread Gary Tully
there is: https://github.com/apache/activemq-cli-tools/tree/master/activemq-kahadb-exporter On Wed, 20 May 2020 at 10:16, Jean-Baptiste Onofre wrote: > > Hi, > > You can: > > 1. Use JMX to browse the queue (directly or via REST thanks to Jolokia) > 2. Use admin console > 3. Use any client (inclu

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread Jean-Baptiste Onofre
Hi, You can: 1. Use JMX to browse the queue (directly or via REST thanks to Jolokia) 2. Use admin console 3. Use any client (including REST) to browse 4. Use jms:* command in Karaf 5. Dump kahadb or browse content using bin/activemq (browse, …) script Generally speaking, we never manipulate kaha

Re: How to access KahaDB db.data in activeMQ-5.15.0 ?

2020-05-20 Thread Francois Papon
Hi, You can use the Webconsole to show the messages. regards, François fpa...@apache.org Le 20/05/2020 à 07:39, skao a écrit : > Hi All, > > I would like to view the KahaDB db.data to check the detail of enqueue > message body. > But it is binary file format. > > Is there any tool to open the K