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

**URL:** <https://community.solace.com/t/jms-message-id-default-set-unique-id-e-g-guid-if-not-set-by-publisher/1060>\
**Category:** General Discussions\
**Tags:** jms\
**Created:** [December 10, 2021, 11:58am UTC](https://community.solace.com/t/jms-message-id-default-set-unique-id-e-g-guid-if-not-set-by-publisher/1060 "2021-12-10T11:58:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/robert/32/1255_2.png) [@Robert](https://community.solace.com/u/Robert)\
**Post date:** [December 10, 2021, 11:58am UTC](https://community.solace.com/t/jms-message-id-default-set-unique-id-e-g-guid-if-not-set-by-publisher/1060/1 "2021-12-10T11:58:22Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![amackenzie](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/amackenzie/32/1168_2.png) [@amackenzie](https://community.solace.com/u/amackenzie)\
**Post date:** [December 15, 2021, 3:35pm UTC](https://community.solace.com/t/jms-message-id-default-set-unique-id-e-g-guid-if-not-set-by-publisher/1060/2 "2021-12-15T15:35:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Robert](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/robert/32/1255_2.png) [@Robert](https://community.solace.com/u/Robert)\
**Post date:** [December 16, 2021, 8:01am UTC](https://community.solace.com/t/jms-message-id-default-set-unique-id-e-g-guid-if-not-set-by-publisher/1060/3 "2021-12-16T08:01:30Z")

</div>

@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.
