[ 
https://issues.apache.org/jira/browse/CAMEL-18541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17609111#comment-17609111
 ] 

Babak Vahdat commented on CAMEL-18541:
--------------------------------------

{quote}However I wonder what happens if you do a

from azure a
to log
to azure b

then that CamelAzureServiceBusApplicationProperties would that propagate those 
headers from a to b, and if so is this correct?
{quote}
Good point, I think that is what would happen which is the _default_ behaviour 
in Camel to propagate headers from one node to the next. E.g. if this was JMS 
(instead of EventHubs) then Camel would do the same to copy the corresponding 
headers of that consumed JMS message to the target, right? And if this is not 
the wished behaviour then {{removeHeader}} or {{removeHeaders}} EIP needs to be 
used for that concrete given use-case.

This also seems to be a similar behaviour when they deserialize the underlying 
consumed Qpid Proton message: 

https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/implementation/MessageUtils.java#L195

> Camel Azure ServiceBusProducer ignore 
> CamelAzureServiceBusApplicationProperties
> -------------------------------------------------------------------------------
>
>                 Key: CAMEL-18541
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18541
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-azure
>            Reporter: Samo Abuhaseera
>            Priority: Major
>             Fix For: 3.x
>
>
> This is related to camel-azure-servicebus component.
> The Azure serviceBus Java SDK has a feature allows sender to send 
> ApplicationProperties (Map<String,Object), which may be used for passing 
> metadata associated with the ServiceBusReceivedMessage, during Service Bus 
> operations. 
> This feature is not present in Camel ServiceBusProducer. It sends only the 
> camel Message body to service bus. There is not a feature to pass meta data 
> such as ApplicationProperties.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to