-
Docker port 55555 not available on Windows
The Solace Messaging Format (SMF) protocol uses port 55555 as default (and 55003 for compressed, and 55443 for TLS). I occasionally run into a situation where Docker Desktop for Windows won't start my Solace container in WSL2 because of some blocked port. I get this: $ docker start solace99Error response from daemon: Ports…
-
Why won’t my Solace Enterprise application reconnect after an HA failover?
Make sure that your reconnect retry value is not set too low or too high. It is recommended that you have your application attempt to reconnect for at least 5 minutes as follows: * connect retries: 1 * reconnect retries: 20 * reconnect retry wait: 3,000 ms * connect retries per host: 5 Be careful with JMS! These settings…
-
How to access services running on your machine from your broker running in Docker
Do you need to access your local machine's network from inside your broker running on Docker? For instance, I wanted to create a REST endpoint so I could send some data from an RDP in a broker running in Docker. The problem is that you can't use localhost or 127.0.0.1 For example, if I start my REST endpoint at port 9010…
-
Tips to clear the EDA practitioner exam!
First of all, I'm happy to share that I've got my second solace certification, which is the EDA practitioner one. It's a great way to validate the skills and build some confidence as well. So, I would like to add some tips here that might help y'all in achieving this: * The training required for this cert is 'Event Driven…
-
Span a DMR mesh across nodes running different PubSub+ Event Broker versions
For those of you who are asking, “Can I span a DMR mesh across nodes running different PubSub+ Event Broker versions?", the answer is Yes! You just need to make sure that all nodes in the mesh are running 9.6 or later.
-
How to prepare for the Solace certification exams
There is a growing interest in the Solace certifications among the community members. I'm glad to learn that some of them have already passed the exams and got Solace Certified. If you have any tips on how to prepare for the exams, please share them below with the community. Here are Manish's tips on preparing for the EDA…
-
How to delay sending out messages in Solace PubSub+
Problem You do not want Solace PubSub+ to send out your message to the subscribers right away. Instead, you want it to send out the message until a timestamp is reached. Prerequisite Download Solace PubSub+ and SDKPerf. Solution To let PubSub+ delay sending out messages, follow these steps: * In PubSub+ Manager, select…
-
Port 55555 blocked at MacOS Big Sur
Solace default SMF port 55555 apparently is blocked under MacOS Big Sur. The issue is a bit irritating, as the port won't show up in any listing for ports in use. Existing templates start silently to fail on simple things like Try-Me with ws protocol (as underlying SMF is not available). New templates will not start with a…
-
Client WebSocket disconnects when browser is minimized or not in focus - Chrome
Here's a tip for anyone using websockets and chrome to establish a connection to their PubSub+ broker. The issue: You might be experiencing websocket disconnects after 5-6 minutes of your chrome browser being minimized or out in focus. The session disconnects with the message "Connection closed: 1001 Going Away (The…
-
Caused by: javax.naming.NamingException: JNDI lookup failed - 403: Client Username Is Shutdown
Hi Team, While connecting securely Solace from MuleSoft Integration product using AUTHENTICATION_SCHEME_CLIENT_CERTIFICATE with below studio version, Anypoint Studio - Tooling for Mule RuntimeVersion: 7.8.0Build Id: 202101272310 Caused by: org.mule.extensions.jms.api.exception.JmsExtensionException: JNDI lookup failed -…
-
Listening to events in your JavaScript/NodeJs application: Promise/Async-Await vs Callbacks
There are a bunch of Solace specific status codes that could be leveraged in callback functions in your JavaScript application or NodeJS microservice. It's a common practice in JavaScript to handle async calls in a Promise/Async-Await implementation. The majority of the Solace API functions are asynchronous but are not…
-
Using sdk_perf to generate 1 million unique topics
I needed to do a test to generate messages with 1 million unique topics. Initially, I thought of writing a simple application that did this but then discovered that the free to download sdk_perf utility gives you this flexibility with the following parameters -ptc=1000000 -ptp=topic/prefix/ This will generate incrementing…
-
Magic hidden Solace topic subscription wildcards
Hi everyone! Hopefully you know all about Solace's different subscription wildcards that consumer/subscriber applications can use to match multiple topics: * The * wildcard is a single-level wildcard, and can be used with a prefix: e.g. hello/wo* * The > wildcard is a multi-level wildcard, must occur at the very end of a…
-
How to find out what subscriptions a client has
Firstly, there are two types of “subscribers” in Solace: * Direct client subscribers, who get messages directly from a topic. These are typically market data style clients, who do not need a guarantee of no data loss; * Queue consumers. These clients cannot tolerate any message loss. The queue itself subscribes to the…
-
Replay with Solace? Learn More a few ways
Lately I've had a few questions around whether Solace supports replay (answer: yes) and how to learn more so I thought I'd share a few options of doing so. You can learn more about Solace replay with these resources: * Solace Docs - of course you can read the manual…
-
identify port/process according adb link.
how can i identify port/process according adb link ? is there a port communication between the brokers if there are a redundancy check ? how consul is needed in such a way ?
-
Sleep in Solace C API
Hi I need to send multiple messages of about 5mb each. When I send a single message without any sleep, it works fine. When I try to send 10/100/... messages without putting the publisher and subscriber to sleep for about 1 second, the last message is not received. On printing the stats it says that the socket was filled…
-
How to create the dead message queue
How to create the #Dead_message_queue for the MQTT qos 1?
-
Solace SEMP error: "Unable to allocate a semp session"
Have you ever seen this HTTP error? This occurs when too many processes are trying to access the Solace broker using SEMP. Or, perhaps a small number of processes/applications are polling the Solace broker too quickly. This often happens in larger distributed environments, where multiple monitoring frameworks are in place.…
-
Live Chat now available in PubSub+ Cloud
If you have a question while using PubSub+ Cloud or need more information about how Solace can help you become event driven, you can have a live chat with someone from Solace at any time now. Here is how to use the new feature: * If you have not already signed up for a trial account of PubSub+ Cloud, do so at…
-
Python program connecting over TLS/SSL to PubSub+ Cloud
Hello everyone, I want to share a simple Python program that connects to the cloud broker service over TLS and publishes a message. It took some time for me to understand some concepts and configuration settings, so I hope this can help anyone struggling with TLS connection.
-
How to get the biggest dump..!
Message.dump() that is..! One of the most convenient features in the Solace native APIs is the ability to just dump() out the contents of a message to the console for debugging. If you've ever used any of the basic Solace Samples, or used SdkPerf test tool, you have seen this output. I wanted to find out: what is the…
-
How to copy files to/from a Solace broker
This looks like a frequently asked question - so I try to list all options to transfer files to/from a Solace broker. Why do you need to transfer files ? This list are just some of the frequent use cases. * upload certificates (server cert, CA chains) to the broker * Download configuration backup files from the broker *…
-
How to forward PubSub+ Event Broker services logs to a Syslog server
You can now forward full PubSub+ Event Broker service log streams to a Syslog server for monitoring and analytics. Here’s how to start using this feature: * Select the service you want to forward logs from in the Messaging Services home screen within the Cloud Console. * From the Service Status screen, use the top…
-
Custom message identifier - sequenceNumber vs applicationMessageId
Recently I had a requirement to specify a unique identifier for each message that I was publishing to the broker. When inspecting the API reference, I found that there are two fields that can be used for this purpose - the applicationMessageId and the sequenceNumber on the message. Both are similar but have some subtle…
-
How to specify a specific JCSMP or JMS version when using the Solace Spring Boot Starters
Sometimes, you may have a particular JMS load that you want to use in Spring Boot. For example, when you need to duplicate an issue experienced by a client. This is the procedure: Edit the POM file with the following two sections: 1) In the dependencies section for the artifact solace-jms-spring-boot-starter, exclude the…
-
What are these objects that start with "#" ??
Ever wonder what all the various objects you see configured in the Solace broker that start with a # symbol?? E.g.: - #client-username - #client - #client-profile - #acl-profile - #config-sync - #REPLAY_LOG_defaultLog - #REPLAY_TOPICS_defaultLog - #P2P/v:solace/... - #bridge/local/... and #bridge/remote/... - #rdp/rdp1 -…
-
Solace PubSub+ Manager 401: Cookie has an invalid value
Heads up! If anyone runs into a 401: Cookie has an invalid value error when trying to login as admin to Solace PubSub+ Manager on fresh docker container (I think it's only after upgrading from a previous version) I found that either one of these work around resolved the issue: 1. Login in incognito mode 2. Clear cookies…
-
Solace PubSub+ Event Broker Rootless
The Problem: Solace PubSub+ Event Broker software users have wanted to run PubSub+ containers rootless. This how-to aims to evaluate how to accomplish this with PubSub+ v9.4 and Podman from a container namespaces security stand point. What is Podman: Podman is a daemonless container engine. It is a drop-in replacement for…
-
FlowHandle.sendSingleAck parameter
In https://docs.solace.com/API-Developer-Online-Ref-Documentation/jms/com/solacesystems/jcsmp/impl/flow/FlowHandle.html#sendSingleAck(long, boolean) the method sendSingleAck has second parameter "allowReactorComplete". What is the meaning of it?