Access to Service Bus message application properties for trigger and output
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start with the @ServiceBusQueueTrigger and @ServiceBusQueueOutput entry points shown in the issue, then inspect how Azure Functions Java binding parameters and outputs represent messages. Determine whether application properties can be exposed for incoming and outgoing messages; done means a documented supported approach or a clearly scoped implementation path.
Written by the indexing model from the issue text.
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.
@Component
public class UppercaseFunction {
@FunctionName("uppercase")
public void run(
@ServiceBusQueueTrigger(/* config */) String message,
@ServiceBusQueueOutput(/* config */) OutputBinding<String> 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?
- Dominant language
- Java
- Stars
- 45
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/azure-functions-java-library
-
area:java-functions
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Azure/azure-functions-java-library#229 · 1 comment ·
-
area:java-functions
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Azure/azure-functions-java-library#222 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
area:java-functions
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
area:java-functions
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in Azure/azure-functions-java-library
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openhab/openhab-core#5847 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
apache/parquet-java#3820 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
beehive-lab/jllm#187 ·