3 Replies Latest reply on May 13, 2014 1:35 PM by jbertram

    reading message body via hornetq.management API

    kellizer

      How would I ready the entire message content (its body) from the hornetq.management API? I can list the header information but can't see anywhere allowing me to actually see what is contained in the message?k

       

      Thanks..

        • 1. Re: reading message body via hornetq.management API
          jbertram

          To my knowledge, there is no way to read the message body from the management API.  Typically the message body only needs to be read by the consumer itself.  What specifically are you trying to accomplish?

          • 2. Re: reading message body via hornetq.management API
            kellizer

            I'm writing a debug application that allows for the replay of messages following a failed state and human intervention;

             

            e.g. -

            1->user raises order

            2-> Order MBean fails 5 times, message moved to DLQ

            3-> A Human at some stage in the future review the DLQ from my debugging app and makes the decision whether to replay; do a manual data fix, of purge the message - to do this they will review the message content (i.e. the body of the message that is a json representation of the order)

             

            At the moment i can show them messages exist in the DLQ but not what is contained within them?

             

            Any thoughts or suggested approach short of consuming the messages and rolling back the transactions :-) ?

             

            Many Thanks..

            • 3. Re: reading message body via hornetq.management API
              jbertram

              Use a JMS queue browser?