2

I was wondering if there is a way to to accessed the BrokeredMessage of a ServiceBusQueueTrigger. It looks like it's supported for C#, but not for java. Is there a way to get that related info.

https://learn.microsoft.com/en-us/java/api/com.microsoft.azure.functions.annotation._service_bus_queue_trigger?view=azure-java-stable

I want to be able to get info like the correlation id.

Thanks, Derek

darewreck
  • 2,576
  • 5
  • 42
  • 67

1 Answers1

1

BrokeredMessage is not supported currently. However, the correlation ID is exposed as binding metadata (see here). You need to use Java client library for Azure Service Bus to work with any strong types such as BrokeredMessage. Please see here for supported types in Java Functions.

Pragna Gopa
  • 726
  • 3
  • 10
Chris Gillum
  • 14,526
  • 5
  • 48
  • 61