Azure / Azure/azure-functions-java-library

ServiceBusTopicOutput - how to set sessionId to a message

Open
#197 0 comments 1 reaction 0 assignees View on GitHub
area:java-functions
Dominant language
Java
Stars
45
Forks
49
PR merge metrics
No merged PRs in 30d

Description

We have been using ServiceBusTopicOutput annotation to get our Azure Function to send messages to a Service Bus queue. This has been working fine. But now a different use case, our output queue needs to be "session enabled".

With the same code as earlier, we are getting this error

_The SessionId was not set on a message, and it cannot be sent to the entity.
Entities that have session support enabled can only receive messages that have the SessionId set to a valid value._

What additional config do we need for ServiceBusTopicOutput in order to send messages with a sessionId ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.