-
How to test TLS connection and server certificate
If you use TLS to secure your connections (and you should use TLS as often as possible), you sometime have issues connecting to your TLS ports. Here, I will describe a way to debug that. Try to connect to a port You're not sure, if your service / port is enabled or (most probably) if all your firewall rules are in place ?…
-
What happens to demoted messages in an MNR network?
Multi-Node Routing (MNR) allows multi-broker distributing of direct messages, but what happens when you publish a persistent (guaranteed) message that matches a direct consumer locally or somewhere in the MNR network? The message will be demoted to direct for the local consumers to receive, but a published persistent…
-
Tip: Git repository search
I am sure, many of you are Git gurus 🙏 Just wanted to share what I found - if you are looking for repositories set to topics with keywords like X, Y and Z, you can simply type topic:X topic: Y topi: Z in the search text (unlike Google's X + Y + Z). For example, if you want to locate a repository of AsynAapi spring cloud…
-
TRB is not showing up after a SolOS upgrade (to 9.10) of 3530 appliances in an HA pair
After a SolOS upgrade (to 9.10) of your 3530 appliances in an HA pair, you may notice that the TRB is no longer detected. The broker is up but when you try to analyze the TRB in the Fabric 1 menu in SolAdmin, the TRB is not showing up. This is expected behavior. As of version 9.5, the Network Acceleration Blades (NAB)…
-
Using Spring Boot Actuator with Spring Cloud Stream
I figured I'd share a quick post on how to use Spring Boot Actuator with Spring Cloud Stream microservices as it might be useful for others (And me when I want to set this up again in a month! 😝). This allows you to make simple GET requests to see config, state, and stats about your bindings and channels for monitoring or…
-
How can I clear the statistics on the broker for my SolCache instance?
This can be done through a clear command (clear cache-instance) at the enable level of the CLI, one level down from the config level. You can see information about it by running " clear cache-instance ? "
-
Do you use TypeScript?
There were several discussions in the community about using typescript definitions with our JavaScript API. We have just updated our Samples repo to include the type definition file. Check it out in more details here! https://github.com/SolaceSamples/solace-samples-javascript…
-
Linux Commands Every Architect/Developer Should Know
Linux Commands Every Architect/Developer Should Know #1 – Process Monitoring * top – To view CPU & memory usage information. _General guidance is Load Average should be similar to the number of cores for the system not under stress._You can also use newer version htop command for more interactivity. Usage Example: top -u…
-
How can I use JMS Priority on a message? The priority isn’t applied by message.setJMSPriority().
Referring to JMS documentation here, you can see that client applications cannot use this method. To set the priority of the message to be published, you can either configure a default priority value for the Producer: producer.setPriority(priorityLevel), or with producer.send(message, deliveryMode, priorityLevel) to set it…
-
SolAdmin worked fine for years but after an upgrade I’m getting the error “cannot find javaw”.
As of version 8.17, SolAdmin no longer comes bundled with a Java Runtime Environment. Please ensure Java 8 (1.8) or later is installed on the platform where SolAdmin will run. The specific error indicates that "javaw.exe" is not in the system PATH environment variable. Please follow below steps to add the path to java to…
-
Why are all of my message-VPNs appearing as down on the backup appliance after an upgrade?
Starting in SolOS 9.1, a Message VPN state will appear as Down with the reason Not Active if the broker is not in the Redundancy Local Active state. Previously, the VPN would show as Up regardless of the redundancy state. This will apply to all VPNs on the standby broker. After a failover the VPNs will transition to Up.
-
Quick-and-dirty REST server for RDP testing
Hi there! I thought I'd share a (possibly!) useful snippet of code that you can use to receive REST requests, and respond with a canned body. It's in Node. I don't know Node, so apologies if it's not glamourous code. I was inspired by the "Simple REST Consumer" on this tutorial:…
-
Disable session timeout on CLI & PubSub+ Manager
Hi Solace Community, For obvious security reason the session timeout for the CLI & PubSub+ Manager is set to 5 minutes for CLI & 15 min for Manager. And this can be annoying to have to reconnect all the time on non production environment or if you have a lot to do in production, for a "go live" for example. CLI Session…
-
How to get SDTMap properties in Spring Cloud Stream
We are using SDTMap to set custom application properties in one service which produce message..which uses normal springboot service. We access solace message api and create SDTMap. In Consumer we use spring cloud stream to receive and process. How to get SDTMap properties in Spring Cloud Stream?
-
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 ?