I'm trying to migrate from Microsoft.Azure.ServiceBus to Azure.Messaging.ServiceBus
This was the previous implementation
final QueueClient sendClient = new QueueClient(new ConnectionStringBuilder(this.queueConnectionString, this.queueName), ReceiveMode.PEEKLOCK);
For Migration I'm referring to this and this, which says to make use of ServiceBusClient instead QueueClient, but ServiceBusClient is not present in Azure.Messaging.ServiceBus
What's the fix?
CodePudding user response:
After reproducing from our end we could able to make this work, However The latest stable version of Azure.Messaging.ServiceBus is 7.7.0. If you are using the beta versions of 7.8.0, try using Install-Package Azure.Messaging.ServiceBus -Version 7.8.0-beta.2
or Install-Package Azure.Messaging.ServiceBus -Version 7.8.0-beta.1
while installing it. But before try uninstalling and removing existing Azure.Messaging.ServiceBus dlls first and then reinstall it again.
You can also refer to related samples from HERE.
CodePudding user response:
For the Java ServiceBus SDK, the migration guide can be found here. AFAIK, you don't need to delete jars. Just referring to the correct version in the pom file should work.