-
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?
-
Taking advantage of LDAP auth to serve 1000+ unique customers with individual resource limits.
The problem: Company customer base is above 1000 client username limit of Standard edition broker. There is also a need to limit the number of connections/resources per unique customer. The solution to username limit: By setting up LDAP authorization, the broker will match directory entry with the client entered username.…
-
Increasing max-connection limit of your PubSub+ broker
Every PubSub+ broker instance has a max connection limit that can be configured. If you are using the Standard Edition, this limit is capped at 1000 connections. While there are many usecases where you don't need to change your connection count, to be able to use Solace's powerful event mesh capability, you need to set…
-
View or peek messages on a queue - queue browsing
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…
-
Fail back to broker configuration for IPC clients
If you need to set up IPC connections, you introduce dependencies in application start-up order and availability: if your IPC listener isn't up when your connection initiator starts, you get a failure. To mitigate this, you might like the option of your IPC connection failing back to a broker connection. This ensures the…
-
How to get and test information on discarded messages
Problem You see that you are having a lot of ingress discards due to No Subscription Match and are looking for more information about these messages. The information that might be pertinent is: Topic, Client Username, and Message VPN name. Solution Use the following command to get the information about the messages:…
-
Simple file sender / receiver over Event Broker
Simple cURL REST POST and python MQTT receiver to move a file across solace. Curl Sender 1. Create directory with files for sending: 'sender' 2. Add password to 'restpass' variable resthost=mr1nljqp0y2dox.messaging.solace.cloudrestport=9000restuser=solace-cloud-clientrestpass=passwordfilemask=./sender/*for filepath in…
-
How can I limit (or increase) the maximum of consumer flows that may bind to a queue?
To limit or increase the number of clients that can bind to a queue, you can set the max-bind-count on the queue. By default that value is 1000. To change that value, issue the following CLI command: home > enable > configure > message-spool message-vpn VPNNAME > queue QNAME > max-bind-count <NEW-VALUE> > home NEW-VALUE…
-
Delete old messages on Solace
Background: For efficiency, when the router needs to store messages for slow or offline consumers, it writes groups of messages to the disk into a single (spool) file. The spool file may contain messages from multiple queues and must remain on the disk until all of the messages are consumed or deleted from the various…
-
Provision your VPN with Infrastructure as Code manner
Hi Guys, I've built a tool for myself to easily backup and provision the VPN. The basic idea is to recursively GET all config from a VPN and write it down into a single JSON file, and you can do it reversely to provision the VPN (event after you modified the JSON file). Please access https://github.com/flyisland/sempv2 to…
-
Doing request/reply over Solace websockets using a custom replyTo Destination
If you have a requirement to using a custom replyTo destination for your request using the Solace Websockets API - follow along this tutorial - https://solace.com/samples/solace-samples-javascript/request-reply/ and make the following enhancements: Add the following function to the BasicRequestor.js - requestor.subscribe =…
-
How to migrate data from old Solace VMR to the latest PubSub+ version
Problem Upgrading your Solace Virtual Message Router (VMR) to the latest Solace PubSub+ software message broker will preserve all data (topic, queues, and all other configurations). However, upgrading is not an option for you. You are not sure how to migrate the data in that case. Prerequisite Download Solace PubSub+…
-
Subscribing to log messages in Solace Cloud
Hi Solace Community, I was recently working on a task which required me to look at log messages using Solace Cloud. Because Solace Cloud is a managed service, I wasn't sure whether these logs were exposed to me or not and if they were, how detailed they would be. With help from my teammates, I eventually figured out how to…
-
How to run Solace PubSub+ with unprivileged user
If you need to run Solace PubSub+ on docker but want to use unprivileged user, please take a look at the following sample command. docker run -d --user 1000 \-p 80:1080 -p 443:1443 -p 943:1943 \-p 8080:8080 -p 8443:8443 -p 8883:8883 -p 9000:9000 -p 9443:9443 \-p 2222:2222 -p 55555:55555 -p 1883:1883 -p 8000:8000…
-
Maximum number of VPNs in a cluster
For the Standard version of Solace PubSub+, how many VPNs can you use in a cluster? The number is dependent on the scaling tier you are on. The default for Solace PubSub+ Standard is 3 VPNs: 2 custom and 1 default. If you want more VPNs, refer to this document to change the scaling tier (just ensure you allocate the…
-
A surprising twist of the CLI copy command
Normally, the generic CLI copy command copies local and remote files. Typically, you give the copy command the source path and the destination path. Either the source or the destination path (but not both) can be on a remote machine. The local paths are relative to the CLI root. Some examples: copy…
-
How to start your Docker container using a different port
Problem When you start Solace PubSub+ using Docker, it exits with an error message like the following: * docker: Error response from daemon: driver failed programming external connectivity on endpoint solacePSPlusStandard … (really long numbers here): Error starting userland proxy: listen tcp 0.0.0.0:8080: bind: address…