Can't Connect with jmstoolbox
I'm trying to connect to a Solace queue with Jmstoolbox.
It appears that it requires a mgmt_url, which I don't think I have access to this from the solace queue that has been assigned to me. Is this required in order to be able to connect to a Solace Queue with jmstoolbox?
Answers
-
Hi @BH56,
Unfortunately your hunch is correct. JMSToolBox requires two sets of credentials. One management user (it uses this for things such as querying the available endpoints) and a client-username which it uses for other things like to publish/consume messages.Hope that helps!
-Marc0 -
Yes, unfortunately you'd need access to the management url/credentials. You can try to ask for read only permissions for a single message vpn and see if they'll give that to you.
If not, then unfortunately there isn't another GUI queue browser that I'm aware of. The easiest option would likely be to use the sdkperf command line tool that you can grab on our downloads site. Some example commands here. It's actually a super useful tool and can do many things.
Example to subscribe to queue "foo"
sdkperf_java.sh -cip localhost:55555 -cu username@messagevpn -cp password -sql foo
By default it will show avg number of messages received over the past 5 seconds, if you want to dump the messages add the
-md
flag and-q
to quiet the averages.0 -
Marc, I got most of the sdkperf working. I'm trying to put output to a file so I can review the source provides the data that we need. I'm using the -mdd to output the message to a file. I'm getting the following error "ERROR [com.solacesystems.pubsub.sdkperf.jcsmpcore.JcsmpWrappedMessage] Method getMessageAsBytes() not supported for this message type." Is there a way to convert or define the message type so the -mdd can output to a file? Thanks for all your help on this!!
0 -
Hey @BH56,
I actually haven't used-mdd
before with sdkperf (Something for me to checkout later )
To keep you moving along can you try adding-md -q
to your sdkperf command instead and then you can pipe that to a file and see if it gives you what you need?-Marc
0 -
I am using the -md and piping output to a file. The -mdd doesn't appear to work with binary files or file types the queue must be using. The -md appears to output in both ascii or hex, with the actual message in a column, so hard to see the entire message more purely on it's own. My goal is to get a more consumable message for my discovery and not having to code it yet. Also, one more quick question. Is there a way to filter based on a User Property Map Key, so only filters off messages that match certain criteria?
0 -
Hi @BH56, a quick answer to your question about filtering the message based on user properties: yes you can - see Selectors. We tend to discourage this if possible - it's an unbounded compute problem, and most selector functionality can be better dealt with by using topic filtering.
Note that selectors work on the header fields - you mentioned property map.0