alvinkwekel / camel-azure-service-bus-demo

Demo of Apache Camel with Azure Service Bus on Spring Boot
2 stars 1 forks source link

Camel Azure Service Bus - How to manually call abandon and complete methods from ServiceBusReceiverAsyncClient and how to do the manual complete when the process is done #1

Open Venkatesh728 opened 2 years ago

Venkatesh728 commented 2 years ago

Camel Route Builder class:

@OverRide public void configure() { from(azureServicebus(queueName).connectionString(Endpoint).amqpTransportType().disableAutoComplete(true).receiverClient(ServiceBusReceiverAsyncClient) .to(....) }

From the above endpoint,

How to implement the manual acknowledgment of the processed message to the ASB. How to call abandon or complete when my process has been done.

alvinkwekel commented 2 years ago

Typically Camel will acknowledge the message after the exchange completes. You could also try to set the JMS acknowledgement mode to CLIENT_ACKNOWLEDGE on the consumer (from) endpoint.