Azure / Azure/azure-functions-java-library

Access to Service Bus message application properties for trigger and output

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

Description

When using the `spring-cloud-azure-starter-servicebus` library for regular Spring Boot applications you can use the wrapper class `ServiceBusMessage` to get and set the application properties (`message.getApplicationProperties().put("key", "value")`, for example).

But when I setup an Azure Function I have found no way to either get application properties from incoming message, nor being able to set it for outgoing messages.
```java
@Component
public class UppercaseFunction {

@FunctionName("uppercase")
public void run(
@ServiceBusQueueTrigger(/* config */) String message,
@ServiceBusQueueOutput(/* config */) OutputBinding output) {
// How would I read application properties from the incoming message?
output.setValue(message.toUpperCase());
// How would I set application properties on the outgoing message?
}
}
```

Have I missed some part of the documentation or is this not supported?

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.