-
PubSub+ Messaging API for Java releases
The following API has been released and available for download: * PubSub+ Messaging API for Java 1.0.0 Release Summary This is the initial release of the PubSub+ Messaging API for Java. Solace created this API to modernize our JCSMP API. This is a separate standalone API which provides modern interfaces, patterns and…
-
Non Exclusive Queue Behavior using MQTT
Hi, we have multiple consumers connected to a durable non-exclusive queue and when we send a message to the queue , only one of the consumers gets the message. Can it be possible to achieve the same behavior using MQTT / java-paho-mqtt ?
-
Library to Unsubscribe Topic from Queue
Hi Community, I am exploring Solace and its Use Cases. Using Solace Java API Library we can create a Queue and subscribe a Topic to the Queue. Using SEMP Java Client Library we can Create and Delete a Queue. Using SEMP REST API we can create and delete Queue , subscribe a Topic to Queue and can also unsubscribe a Topic…
-
Persistent receiver with subscription-specific listeners
Hi, Is it possible to have multiple topic-specific receivers and handlers to consume messages from a queue? Like: var receiver1 = messagingService.createPersistentMessageReceiverBuilder() .withMessageAutoAcknowledgement() .withSubscriptions(topicSet1) .build(queue) .start(); receiver1.receiveAsync((message) -> { //...…
-
Integrating the Solace Kafka Sink Connector with Confluent Schema Registry
Avro is a common message format used for Kafka records. Large Kafka implementations leveraging Avro often use the Confluent Schema Registry to ensure uniform record schemas across publishers and subscribers. When using the Solace PubSub+ Kafka Connectors to publish Kafka records as Solace PubSub+ events, it may be…
-
Batch processing with Spring Cloud Stream
Hi Solace Community, It's me again. So we moved from RabbitMQ to Solace and identified that Solace does not support batch mode. See: https://solace.community/discussion/811/spring-cloud-stream-batch-mode So we started to implement a manual Acknowledgement function to accomplish something similar. But we are stuck in one…
-
Clone Message in Java ? (for DMQ move to Main Queue)
I have a problem with functionality which is not implemented in all offered programming languages. The use case i work on is a utility to move messages from DMQ back to main queue to re-publish the messages). The problem is that there is a flag DMQ eligible…
-
How to send NACK(Negative Acknowledgement) using java API
Hi Team, Need your help to find the solution. Current Implementation details, SolConnectionFactory connectionFactory = SolJmsUtility.createConnectionFactory(); --> for create connection factory using host , vpn,trust store,keystore with auth scheme AUTHENTICATION_SCHEME_CLIENT_CERTIFICATE this.connection =…
-
Integration Testing with Solace
All, I have a java based spring cloud stream application that publishes messages to solace topics based on an internal trigger. I am using StreamBridge to publish messages. I want to write integration test cases for it for which I need to bring up a solace server. Any idea on the best ways to do it? Thanks in advance!
-
New Tutorial Available - Spring Cloud Streams
A new tutorial has been posted to the Solace Samples pages! Be sure to check it out. https://tutorials.solace.dev/spring/spring-cloud-stream/
-
About changing sol-jms version in solace-jms-spring-boot-starter 4.1.0
Hello, Due to some reasons, I need to use sol-jms 10.11. However, I want to use solace-jms-spring-boot-starter for my project but the latest version of the starter (4.1.0) is using sol-jms 10.8.1. I want to change the sol-jms version by: <dependency> <groupId>com.solace.spring.boot</groupId>…
-
Early Access is Now Available for the New Java API 🎉
Early Access is Now Available for the brand new "PubSub+ Messaging API for Java" 🎉 Solace Community members can find out more about the API in the "Early Access API" category here: https://solace.community/discussion/643/early-access-now-available-for-the-new-java-messaging-api
-
Create a Spring Cloud Stream Microservice in 5 minutes
Hope everyone is having a great week. I wanted to share my newest blog and video where I show how simple it can be to get started with Spring Cloud Stream using start.spring.io & of course a Solace PubSub+ Event broker. If you've never done it, you should give it a shot! It only takes 5 minutes :) Blog is here. And Video…
-
Extract Topic Name from Java Beam pipeline
I am using java beam pipeline and want to extract topic name from solace. But I am not getting any such function or anything to do the same.
-
Consuming messages from solace queue but not writing to GCS
I am working on java pipeline code to consume messages from solace queue and write it to GCS. With the same code I was able to do the same but from past 3 days with the same code I am only able to consume messages but it is not writing to GCS. Today I ran the code again so it is not consuming messages from solace and…
-
How to publish and consume an attachment(.txt) file along with each message in queue?
Is there a way to publish a message and an attachment(.txt) file to a queue? Can this message and the attached file be consumed using java interface?
-
📣 JAVA Folks! New upcoming PubSub+ Messaging API for Java 📣
I wanted to start this discussion to see who is using the Java implementation of the Solace Messaging Protocol API? Good news is we are releasing a Brand New Java API: "PubSub+ Messaging API for Java" so stay tuned and let me know if you want to be one of the first to try out this API and give us feedback. Early Access of…
-
Quarkus native and solace client issue
Hello, I'm developing an application with Quarkus and Solace. Quarkus allows you to compile java to a native application. Compilation is fine, but at runtime I have this issue: 2020-11-13 12:49:18,462 ERROR [io.qua.run.Application] (main) Failed to start application (with profile dev): java.io.FileNotFoundException:…
-
Reprocess messages which are not Ack-back by consumer
Hello There, Using JCSMP API. This might be repetetive query, appreciate if you point me to solution. 1. I am using Guaranteed Delivery Queue 'DeliveryMode.PERSISTENT' to publish a message on queue. 2. I have Single Consume for this Queue endpoint_props.setAccessType(EndpointProperties.ACCESSTYPE_EXCLUSIVE); cons =…
-
What causes messages to go to Incoming Message Discards and how to prevent it
I have a producer calling send after invoking newTopicProducer. Send looks successful, but not seeing it arrive at the queue that is set up for that topic. Looking at the stats on the Solace UI, I just see the messages being discarded. Are there tools to see why the messages are being discarded?
-
Integration/Functional Testing with JUnit and Solace
When developing event driven Java services for Solace PubSub+, at some stage you want to move from unit testing Java code to testing services against a broker. This repository demonstrates a base class for JUnit tests that launches a new PubSub+ instance in docker for use in tests. It utilises testcontainers, manages the…
-
Java Client: How to use lookup data
Hi together, what is the best way in Solace to use non static structured lookup data in a Java Client, without the use of an external system ? For example, I am getting an Id from a source system and now I want to enrich my data based on the lookup and send it back to Solace.
-
Java API: Working with the Topic String
Hello together, we are currently starting with Solace development and want to build different use cases. First we created a topic hierarchy, where for example a source systems stores different data parts in the topic string like: ${sourceSystem}/${stage}/${businessObject}/${objectId} Now we want to extract different parts…
-
Java Client: How to set ttl (seconds) when creating a queue
Hey, I am trying to find a way of how to set a ttl property in seconds when creating a new queue via jms. Currently I'm using the EndpointProperties which provides only the option to respect the ttl (I guess that can come as a value in headers from the messages). By default when a queue is created and the respect ttl…
-
@PollableBean for Reactive Suppliers in Spring Cloud Stream
Supplier beans, or functions that only publish messages in Spring Cloud Stream, are a bit special in that they aren't triggered by the receiving of events like Function or Consumer beans. This means that you often need a way to trigger them to be executed periodically. For imperative functions the framework by default…
-
New Spring Cloud Stream Dynamic Topic Publish Sample!
Heads up for everyone using Spring Cloud Stream I created a new sample that shows how to publish to dynamic topics! I'll be creating a tutorial or blog at some point to add more explanation, but for now you can check out the code on github: * DynamicDestinationProcessor.java * application.yml Note that this is already…
-
Checking payload with Json schema
Hi ! In the Event Portal I can associate a Json schema for checking the payload of an incoming event. I'm wondering how to do this when using Spring cloud streams messaging with the Solace binder in a Docker environment. Is there an example available ? BR Gerhard
-
Free developer workshop and course: Building the Battleship game with TypeScript, Java, and PubSub+
Good news! Solace has just released a free Udemy course and a free Codelab developer workshop! They teach developers how to build a working online version of the game “Battleship” using TypeScript with the Aurelia framework as the front end, Java with the Spring Cloud Steam framework as the back end, and Solace PubSub+…
-
Free developer workshop and course: Building the Battleship game with TypeScript, Java, and PubSub+
Good news! Solace has just released a free Udemy course and a free Codelab developer workshop! They teach developers how to build a working online version of the game “Battleship” using TypeScript with the Aurelia framework as the front end, Java with the Spring Cloud Steam framework as the back end, and Solace PubSub+…