1 of 1 people found this helpful
The HornetQServerControl has listProducersInfoAsJSON which I think you should be able to use to gain insight here.
Yeap, this works, but only for online producers. If the producer close his connection then the information is lost (tested here).
There is any way to count messages for that producer since hornetq last start/restart?
The information is volatile so what you are observing is expected.
There isn't anything which collects that data for access after the producer is closed.
I tried to implement some Interceptors (org.hornetq.api.core.Interceptor), but I can´t find a good documentation about all the packet types.
There is any packet that can anwer something like ClientID and destination for each message?
Or, how can I get text body from org.hornetq.core.server.ServerMessage ? I tried with getBodyInputStream, but is empty.
Something like this can helpme with these anwers.
There is no documentation covering all the packet types. If you've got the HornetQ source, just look for all the classes that implement org.hornetq.core.protocol.core.Packet. You can also check out the interceptor example in the HornetQ distribution or the org.hornetq.tests.integration.InterceptorTest in the HornetQ source to see more about how to use interceptors.