🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

View or peek messages on a queue - queue browsing

TomF
TomF Member, Employee Posts: 412 Solace Employee
edited March 2020 in Tips and Tricks #1

Want to see what's on a queue without consumi.ng the messages? Got a poison message that's killing your app but dont know why? Here's an example of this type of question: https://solace.community/discussion/198/possible-to-export-message-payload-in-queue-level#latest

What you need is a queue browser. This reads a message from a queue but doesn't consume it - the message remains on the queue.

The simplest way to do this is with sdkperf. Use the -sql option to bind to the queue, -qb to enable queue browsing and -md to view the contents as text. If you are using a binary format or serialisation package, you'll probably need to write an application: browsing is a flow property.

Comments

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 963 admin
    edited March 2020 #2

    Thanks for sharing @TomF. SDKPerf is definitely an excellent command line option for queue browsing.
    If anyone finds this post and wants to give sdkperf a shot you can download it here: https://solace.com/downloads/

    Also, if you're looking for a GUI that can be used as a queue browser you can use JMSToolBox. I'll shamelessly plug a video I made a few months back that talks about using that tool. :D:p