Solace Community is getting a facelift!

On March 3rd we will be starting the process of migrating Solace Community to a new platform. As a result, Solace Community will go in to a temporary read-only state. You will still be able to come onto Solace Community and search through posts to find answers, but you won't be able to ask questions, post comments, or react in any way.

We hope to have the migration complete by Wednesday March 5th (or sooner), so please keep an eye out!

Jms Message Id - default set unique id e. g. GUID if not set by publisher

Robert
Robert Member Posts: 58 ✭✭
edited December 2021 in General Discussions #1

I found that by default use of solace no message id is set when using jms client.
As that field is best to corelate an error on subscriber with message parked in DMQ or perform de-duplication, i wonder if there is a. config in solacd to auto. fill when publisher does not set the ApplicationMessageId which normally turns into JmsMessageId ?

Tagged:

Best Answer

  • amackenzie
    amackenzie Member, Employee Posts: 270 Solace Employee
    #2 Answer ✓

    there is no message ID that gets auto-populated in JMS messages. The PubSub+ JMS provider fully respects ApplicationMessageId when set, even when the message is published by a different API (e.g. published in Java or .Net but consumed via JMS) but your publisher must set it.

Answers

  • amackenzie
    amackenzie Member, Employee Posts: 270 Solace Employee
    #3 Answer ✓

    there is no message ID that gets auto-populated in JMS messages. The PubSub+ JMS provider fully respects ApplicationMessageId when set, even when the message is published by a different API (e.g. published in Java or .Net but consumed via JMS) but your publisher must set it.

  • Robert
    Robert Member Posts: 58 ✭✭

    @amackenzie Then we must enforce via policies that publisher must set SenderTimeStamp and ApplicationMessageId. I think both fields are quite important and therefore should get set.

This Month's Leaders

This Week's Leaders