Azure / azure-service-bus-java

☁️ Java client library for Azure Service Bus
https://azure.microsoft.com/services/service-bus
MIT License
60 stars 59 forks source link

ServiceBusSenderClient sendMessage method doesn't return MessageId after pushing the message to the queue/topic #417

Closed vpeddada-tibco closed 3 years ago

vpeddada-tibco commented 3 years ago

Actual Behavior

1.When we try to send a message to a queue or a topic using the following method, com.azure.messaging.servicebus.ServiceBusSenderClient.sendMessage(ServiceBusMessage message) it doesn't return MessageId of the message that just got pushed.

  1. When a MessageId is not assigned in the ServiceBusMessage object, then a GUID gets created internally for that message to uniquely identify for duplicate detection. However this id is not propagated in the message or the response of the sendMessage()operation.

    Expected Behavior

  2. After successful execution of sendMessage operation, MessageId should be available as a response or in the ServiceBusMessage object. Having this information is critical in the real time distributed systems to uniquely identify each message that is being sent by this operation.
  3. ServiceBusMessage object currently doesn't have any information after the send operation and getMessageId() method returns null but not the system generated GUID.

Versions

vpeddada-tibco commented 3 years ago

Closed this issue as it is created on the wrong repository