-
Trouble connecting to Solace and no descriptive error is being received? Certificate auth
Hi, I am trying to connect to event-broker. but could not connect. also the exception I am receiving is not very descriptive about what could be wrong. I have double checked: trust store path. certificate path certificate password. SSLValidateCertificate is set to true. HostName VPN and ClientName are all double checked. I…
-
In the .NET API, why isn't the `CorrelationKey` set on the `RejectedMessageError`?
I have an application with messages sent to Persistent and a session event handler checking for SessionEvent.RejectedMessageErrorstatuses. I wan to add some special handling logic for the scenario where a persistent message is too large (>30MB), but for some reason the SessionEventArgs.CorrelationKey is always null,…
-
C# - Solace Queue Message not reading and missing sometime
I have referred sample code provided by the Solace team for implemented Pub/Sub Queue message (https://github.com/SolaceSamples/solace-samples-dotnet) Sample code is implemented part of Microsoft .Net 6 Worker service and scheduled to run every 30 mins. I am facing new issue and i really don't know what went wrong in my…
-
Using an ITransactedSession and handling errors with the .net API
Suppose I am publishing guaranteed messages to a topic. I want to avoid sending duplicate messages. I am also going to send messages in transactional batches to make it easier to guarantee the broker receives the messages in the same order that the publisher creates them, without having to fall back to completely…
-
Encountered sasl exception when connecting to Solace topic with AMQPLite dotnet library(AMQP 1.0)
Hello everyone, I am suffering an error when I tried to send/publish the messages with AMQP in my C# code. Below is the error: {error(condition:amqp:not-implemented,description:sasl-mechanisms(sasl-server-mechanisms:[ANONYMOUS]))} Below is the partial code, the Connect() method is an internal method which is responsible…
-
C# library is allocation heavy on the Send() for message arrays, any chance for improvement?
I have market data app that uses 3rd party C++ library that I wrapped in native C interface and I'm using it in C# app. I exchange memory between native and managed with zero allocations and copies using all the latest and greatest stuff C# has to offer at .NET 6 level. But Solace C# client library is lighting up my…
-
Receiving Queue Alerts in C#
I'm currently running into issues trying to subscribe to alerts from my queue. I currently have my queue set up where I should be getting threshold alerts when I have 2+ msgs in the queue. From https://docs.solace.com/Monitoring/Subscribing-to-MBus-Events.htm and…
-
C#.Net and the connection factory
Good day, I am trying to develop a service that will connect to an entity using the JMS functionality. The setup information provided by the vendor has a connection factory and jndi factory but I can't seem to find any reference to this in the tutorials for C#. I have found these references in the Java code bases. Is there…
-
.net sdk writing directly to solcache
Is there a method of writing messages directly to topics stored in solcache without current subscribers receiving the message. Wondering if message filters is the best method of doing this.
-
Queue not able to send expiry message to DMQ
Hi, I created 2 message queue 1) Main_Queue 2) DEAD_MSG_QUEUE The main queue has been configured 'DEAD_MSG_QUEUE' as DMQ name and 'Respect TTL enabled' with Maximum TTL (sec) as 180 sec. A producer is sending a message with DMQEligible to true and when the trough dashboard i can verify that message properties for…
-
Set ApplicationMessageType via REST API?
I rely on the ApplicationMessageType property to map received events back to the POCOs that they were generated from. I am publishing events from a Blazor WASM application, and can't use the SolaceSystems NuGet package since it won't run in a WASM environment. Thus, I'm using an HttpClient with the REST API. I've looked…
-
C# consumer flow dispose
Hi I'm new to Solace + this is my first post, so be gentle :D I'm building a worker (C#) that consumes messages off a Solace Queue using the SolClient messaging API. On application shutdown, I attempt to stop & dispose the flow. See code below: _flow = session.CreateFlow(flowProperties, queue, null, HandleMessageEvent,…
-
.Net integration using .pem certificate
Hello, I'm looking for some help on how to import .pem certificate and use it .Net code. Any help or sample implementation for reference will be appreciated.
-
C# .net integration getting error Failed to create session
I follow the instruction in this tutorial: https://solace.com/samples/solace-samples-dotnet/publish-subscribe/ Getting error (SOLCLIENT_FAIL - Failed to create session) when create session and connect how to reproduce: * Create Solace Cloud free plan * Pub/Sub using Secured SMF URI with (host, vpn, username, password)…
-
Develop the C# client for sending and receiving messages through Solace Broker
Hi Team, I am new to Solace Pubsub broker. This is my first posting. So please apology me, if my query is not clear. I can elaborate it, if it requires. We want to develop the POC to send and receive messages (Pubsub pattern) for C# (Client). How to pass a data/messages using event schema defined in the event? How to…
-
Generate C# code using Async API
Hi, As per my understanding, Async API tools generate the basic skeleton code. Could anyone used Async API to generate code for C#. If it is could you please share me the useful links. With Warm Regards, Sreeram Architect
-
Is it applicable to turn on/off Respect TTL settings in queue via API (using C#)
Hi everyone, as title, I would like to turn on/off the Respect TTL setting using C# due to I have multiple queues with the same topic for different systems, and not all of the queue has consumers. For those queue without consumers, I hope I can turn on the Message Expiry/Respect TTL freely until there is consumer to digest…
-
Estimation of expected background traffic for a subscriber that is not receiving data?
Suppose I have a c# application which receives guaranteed messages from a solace pubsub+ broker. The application runs as a windows service or daemon. In other words it is always running, but essentially just sitting idle (asynchronously waiting on an IAsyncEnumerable) when there is no data to process. Under this scenario I…
-
BinaryFormatter exception in .Net 5
Hi, after migrating project to .Net 5 we started to get this error: System.NotSupportedException: BinaryFormatter serialization and deserialization are disabled within this application. See https://aka.ms/binaryformatter for more information. at…
-
How to integrate Publisher and subscriber code in a same c# file ?
Hi, I want to run publisher and subscriber in a same c# file to use it in unity3d does anyone did before?
-
How to use publisher and subscriber codes in a same script in unity3d?
Hello , I am working with unity and I am trying to use both of the subscriber and publisher in a same unity file so to do that I did following solutions: I use publisher script and add it to my button and I use subscriber and add it to another Game object but unity crashed Because it wanted to run subscriber and publisher…
-
How to integrate unity3d and Solace pubsub?
Hi I am very happy that I can join to your community. Since some months ago I was working with solace pub sub+ and now I want to integrate Solace to unity3d for publishing messages from unity to Solace I didn't have any problem but to receive data from Solace and using unity as a subscriber I had lots of problem and I…
-
C++, Max clients exceeded for queue
Hi, I would like to send Guaranteed messages to a queue and then read them back within a C++ project. I have managed to create a session (solClient_session_create), then I created a transacted session (solClient_session_createTransactedSession). When creating a flow (solClient_transactedSession_createFlow), I get the…
-
Solace .net libraries possibly using no-longer-supported binaryformatter (also, .net5)
In a question thread created late last year, forum user @Anton was asking about a binary formatter exception in relation to his attempt to use .net5. I have just run into a similar issue. But interestingly, at around the same time that previous thread was resolved, microsoft issued a notice: BinaryFormatter serialization…
-
Applying backpressure to a flow by blocking in the MessageEventHandler
I have a few days of free time and so I am developing a new branch of my Solace subscriber wrapper library. I thought I'd play with exposing the message stream as an IAsyncEnumerable. I decided to use a System.Threading.Channels.Channel with a bounded capacity for this. The idea is to (usually) quickly let the message…
-
.NET - Context.Init throws exception when used with dependency injecetion
Hi! I am trying to setup a .NET Framework 4.7.2 application for publishing to an Solace Event Broker. I have made a class with the role to configure and contain the SolaceContext and provide it whenever I'd like to create a session to publish a message. public class SolaceContextContainer : ISolaceContextContainer {…
-
Is it safe to reuse messages without calling Reset()?
Suppose I have a Publisher class which encapsulates the details of the solace broker. For any given application, it will receive an instance of a Publisher for a given topic to which it wants to send guaranteed messages. This means that the IMessage properties Destination and DeliveryMode are guaranteed to be constant for…
-
Transactions not supported
Hi, I'm actually a newbie to AMQP and Solace. I have questions regarding a issue publishing message using "AMQP 1.0 library for .Net" to Solace. i) I kept getting "Transactions not supported" when I try to publish message in a transaction scope. May I know if this is an expected exception? The Solace's AMQP 1.0 conformance…
-
Handling failures of ISession.Connect with .NET API
There is a comment in the ISession documentation for .NET of "Connect and disconnect on demand" but no more detail on that. Currently our app has: * Code at service startup to initialise Solace, create session, call ISession.Connect() * Additional threads utilising that ISession to create guaranteed message flows etc. The…
-
.NET best practices for lifetimes/instancing of context/session?
We are looking to add Solace support for publishing/receiving from Solace Topics & Queues to our existing .NET C# codebase that already handles MSMQ and MQ. One thing that I have not come across in the documentation / examples is how we should be instancing the IContext and ISession - the code examples simply create one of…