-
How to get ReplicationGroupMessageId for message replay with Spring cloud stream
Hi , I was trying to find replayMsgId in message header using spring cloud stream , i printed all header which i received but not able to find any values as "rmid1:0117b-75462900ca8-00000000-00135082" Headers which i got as below: * solace_senderTimestamp --1628606024803 * solace_expiration -- 0 * deliveryAttempt -- 1 *…
-
spring cloud stream
compile("com.solace.spring.cloud:spring-cloud-starter-stream-solace:3.1.0") when i add this dependency to my project using spring boot 2.3.12. Its downloading 2.4.3 jar also ( when removed it doesn't ) where as i tried 2 other project its not the case over there they still use 2.3.12 and does not download 2.4.3 and use it…
-
Spring Cloud Stream publishing messages
I have heard that SCS should no longer be used together with flux (flux destroys that: retry handling, error handling, transmission confirmation). With StreamBridge messages can be published. But in my opinion the StreamBridge is not quite consistent with the other declarative and functional handling of SCS. Are there…
-
Pull message from a queue on an adhoc basis
Hi, I have a requirement to use spring cloud stream binder for solace to connect and pull messages from a queue. The application should not listen to that queue continuously instead it should try to pull the message based on a scheduled time interval. Could you pls help me how to achieve this with minimal java code? Thanks
-
Spring cloud stream with solace
Couple of question i have for solace binder, 1. I tried an example for DLQ functionality where i could throw exception from the listener and it was published to error queue, does solace has any mechanism to reprocess them, except that we add a listener and reprocess manually/code. Even same for DMQ.
-
Trying to connect consumer to the pre-defined queue, getting error as Permission mismatch.
Hi, I am trying to connect pre-defined queue named GMMO.UCTRADE.DSLT01 it has ALL OTHER POERMISSIONS: No Access(0000) . When i try to consume frm the queue , application throws below error : org.springframework.cloud.stream.provisioning.ProvisioningException: Failed to provision durable queue GMMO.UCTRADE.DSLT01; nested…
-
springcloudstream processor app listening wrong queue with appended scst/wk/
i have created springcloudstream processor appliation which need to listen to queue "TEMPS.Q" and publish to topic "sensor/temperature/celsius/topic" But when i start running the application instead of listening to queue "TEMPS.Q" its creating new queue "scst/wk/PROCESSOR/plain/TEMPS.Q", so its not able to pull messages as…
-
spring cloud stream multi api version
The problem: A single spring cloud stream application, have to send out the same data via 2 major versions of the same api. spring: stream: bindings: myApiV1-out-0: destination: api/v1/the/topic myApiV2-out-0: destination: api/v2/the/topic Question: What is the most elegant solution for this problem? Idea / what i want to:…
-
SPRING CLOUD STREAM
SolaceExtendedBindingProperties does not provide the implementation of getBindings() , I would request you to please provide some method to get bindings details at run time.
-
Spring cloud stream Message Type Conversion Issue
Hi Team, We get the type casting issue when spring cloud stream reply the message to non spring cloud stream service. com.solacesystems.jcsmp.impl.BytesMessageImpl cannot be cast to com.solacesystems.jcsmp.TextMessage" Code: Below is the code used in the non spring cloud stream service which is type casting to text message…
-
Issue subscribing durable queue to topic
Hello We are using Spring Cloud Stream solace binder to connect to Solace. We are facing an issue when durable queues subscribe to topic. Case 1: When the application is creating the queue we are not facing any issue. The durable queue gets subscribed to the topic and is able to consume message successfully. Case 2: When…
-
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?
-
Not able to access any of those solace specific headers,
@StreamListener("solace-test") public void onMessage(Message<String> message){ Destination destination = message.getHeaders().get(SolaceHeaders.DESTINATION, Destination.class); System.out.println("DESTINATION :: " + destination.getName()); System.out.println("MESSAGE " + message.getPayload());…
-
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!
-
Subscription concurrency to speed up data consumption
Hi, In solace I pre-configured a Non-exclusive queue and now trying to consume data in spring cloud steam app , by providing spring.cloud.stream.bindings.fn-name.consumer.concurrency=4 , In logs i can see it's trying to start four subscriber but all four are getting timed out. If we make this number as 1 or remove this…
-
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/
-
How to trigger a solace supplier
I have a supplier function that will produce messages to a solace broker. By default, the supplier is called every second to generate messages. But in my case, I want to explicitly call the supplier based on an internal event. How do I do that?
-
Spring cloud stream | Scaling
I just wanted to understand couple of things here.. * If i have 10 consumer configured then for each queue i see 10 consumer/subscription, that's going to be a lot no doubt because i have 50 queue and there will be like 50 *10 = 500 consumers and there are certain infra limitation within the organisation so i will reduce…
-
spring cloud stream
cloud: stream: bindings: inbound: destination: TestQueue group: perf concurrency: 2 I get 403 Permission Not allowed whenever i add a group name what is causing issue ? TcpClientChannel : Error Response (403) - Permission Not Allowed - Queue
-
Spring Cloud Stream Microservice Deserialize Messages
Hello, I have set up a Spring Cloud Stream microservice with the solace configuration. This microservice has been able to take in payloads of type string or java object, but I am now receiving SpB (protobuf) messages through solace. My goal is to deserialize these messages to JSON or POJO to be able to actually work with…
-
EBAY: AsyncAPI 2.0: Enabling the Event-Driven World
I found this article pretty exciting and figured I'd share: AsyncAPI 2.0: Enabling the Event-Driven World Shekhar Banerjee, a principal architect at Ebay, talks about how they're adopting the use of AsyncAPI for their event-driven initiatives, how they're applying it to their microservices evolution, and even had a few…
-
spring cloud stream, queue provisioning
@marc HI Mark I am setting so many properties repeatedly can you please help me how can i set most of them default testQueue: producer: provisionDurableQueue: false queueNamePrefix: null useFamiliarityInQueueName: false useDestinationEncodingInQueueName: false autoBindErrorQueue: true consumer: provisionErrorQueue: false…
-
Batch Mode Support on Spring Cloud Stream Solace Binder
We have an use case where in we need the consumer to receive a batch of messages and process them together as a unit and post it to an outbound topic. We want the batch to be acknowledged as a whole once the processing of batch is completed by the consumer. In spring cloud kafka binder we have a "batch-mode" functionality…
-
Spring cloud stream
Hi Guys Can you please let me know what is causing the issue, Commenting the logs, also what are the dependency required spring boot, spring cloud, gradle to use solace 2 and above version.
-
Solace spring cloud stream support
Couple of questions i have * Does solace has compress support for producer ? producer: compress: true * Does autoBindError Queue is supported only in consumer or producer ? * if i enable error-channel-enabled: true, is there a way to listen to all the error together in one channel, and i would be able to drop them back to…
-
Spring Cloud Stream + Microservice Pub/Sub
Hello, I am creating a microservice through spring cloud stream. My idea is to have a publisher application send messages through a queue to the microservice, which will then process data, and send out the processed data to a consumer application through a queue. I am having an issue with understanding how to configure the…
-
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…
-
Spring cloud stream -- jmsTempate
I am trying to read a message using jmsTemplate but not able to cast it, i need to read payload/body and then i have to drop that message using jmsTempate to another queue. class com.solacesystems.jms.message.SolBytesMessage cannot be cast to class javax.jms.Message
-
Spring cloud stream
In case when we siphon the message from an error queue we dont get from which queue it was thrown like rabbit does it by proving original queue name, also how to get all the headers i am using jmsTemplate or jndiTempated i see property to gather there is not separate method to just get all the headers, also there is method…
-
Solace Dynamic routing
Is dynamic routing is same as dynamic destination binding Dynamic routing as per rabbit all producer published to same queue, configured on routingKeyExpression for producer and consumer listener receives it based on bindingRoutingKey. does this can be accomplished using stream bridge or BinderAwareChannelResolver??