How to get ReplicationGroupMessageId for message replay with Spring cloud stream

manzarul
manzarul Member Posts: 20 ✭✭✭

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:

  1. solace_senderTimestamp --1628606024803
  2. solace_expiration -- 0
  3. deliveryAttempt -- 1
  4. solace_destination -- test/msg/replay
  5. solace_timeToLive -- 0
  6. solace_receiveTimestamp --0
  7. skip-input-type-conversion -- false
  8. solace_discardIndication -- false
  9. solace_priority ---1
  10. solace_redelivered --false
  11. id --1cbf2434-fb03-d17f-9174-1e3a2f0d6edf // this id is not accepted for message replay.
  12. contentType --application/json
  13. solace_senderId --Try-Me-Pub/solclientjs/chrome-91.0.4472-Windows-0.0.0/2758948243/0003
  14. timestamp --1628606684861

Need your help here to know how to get ReplicationGroupMessageId in spring cloud Stream project.

Comments

  • amackenzie
    amackenzie Member, Employee Posts: 268 Solace Employee

    Hello, this property is not currently exposed via Spring Cloud Stream Solace binder. I have created an internal request to have this added. I don't have a timeframe for it but we are aware that it's needed.

  • manzarul
    manzarul Member Posts: 20 ✭✭✭

    Thanks for your help , is there any approx (max) time , since we are using spring cloud on production , so either we need to move on another framework to achieve this or if time line is near by then we can wait for same.

  • amackenzie
    amackenzie Member, Employee Posts: 268 Solace Employee

    I have created a PR in the GitHub that addresses this. https://github.com/SolaceProducts/solace-spring-cloud/pull/91

    I am a Product Manager at Solace, not a developer, so I am leaving it with the project maintainers to merge my PR. This should happen in the next day or 2.

    NOTE: the PR is to a version 2.2.0 staging branch. This is where version 2.2.0 will be worked on but we are not at the point where 2.2.0 is ready to be released (this change is actually the only thing in this branch so far). If you are going to use my fix before release of 2.2.0 (not likely to be released before Oct 2020), you would have to build the staging branch to pick it up.

  • amackenzie
    amackenzie Member, Employee Posts: 268 Solace Employee

    the PR has been merged

  • manzarul
    manzarul Member Posts: 20 ✭✭✭

    Thanks a lot for such quicker response,
    Now you provided alternate to use https://github.com/SolaceProducts/solace-spring-cloud/tree/stage-2.2.0 , which is really appreciated!

  • manzarul
    manzarul Member Posts: 20 ✭✭✭
    edited November 2021 #7

    Hi is it possible to release 2.2.0 pom version ,waiting for this since long time.
    latest i can see "https://mvnrepository.com/artifact/com.solace.spring.cloud/solace-spring-cloud-bom/2.1.0"