使用Java SDK,连接模式访问Azure服务总线 [英] Azure service bus access using Java SDK, Connectivity Mode

查看:73
本文介绍了使用Java SDK,连接模式访问Azure服务总线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有几个通过调用将服务总线环境配置为通过C#使用http/https的示例:

There are several examples of configuring the service bus environment to use http/https with C#, using the call:

ServiceBusEnvironment.SystemConnectivity.Mode = ConnectivityMode.Http;

我的问题是-是否可以以及如何通过Java客户端执行此操作?

My question is - can and how do I do this via a java client?

推荐答案

SDK的较新版本(1.0和更高版本)不支持HTTP连接(仅适用于AMQP),而较旧的版本不支持AMQP(仅适用于HTTP).因此,不需要连接模式"设置.

The newer versions of the SDK (1.0 and later) do not support HTTP connectivity (AMQP only), and the older ones do not support AMQP (HTTP only). As a result there's no "need" for connectivity mode settings.

Java SDK仅适用于AMQP.

The Java SDK is AMQP only.

如果需要使用http,请尝试Java较早版本的Azure SDK(仅http).可以在 https中找到://github.com/yvgopal/azure-sdk-for-java/blob/0.9/services/azure-servicebus/pom.xml .请注意软件包的版本,因为新的仅AMQP的SDK也具有相同的软件包名称.从0.9开始但在1.0之前的任何版本都应该不错.另请注意,SDK完全不同.用一个SDk编写的应用程序不能与另一个SDK一起使用.

If http is what you want, try Azure SDK for Java older version, which is http only. It can be found at https://github.com/yvgopal/azure-sdk-for-java/blob/0.9/services/azure-servicebus/pom.xml. Be careful with the version of the package as the new AMQP only SDK also has the same package name. You should be good with any version starting with 0.9, but before 1.0. Also note that the SDKs are completely different. Applications written with one SDk don't work with the other SDK.

https://github.com/Azure/azure-service-bus-java/issues/171

这篇关于使用Java SDK,连接模式访问Azure服务总线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆