servicebus

Azure service bus access using Java SDK, Connectivity Mode

寵の児 提交于 2021-02-10 05:39:15
问题 There are several examples of configuring the service bus environment to use http/https with C#, using the call: ServiceBusEnvironment.SystemConnectivity.Mode = ConnectivityMode.Http; My question is - can and how do I do this via a java client? 回答1: 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. The Java SDK is AMQP only. If http is

Setting the OperationTimeOut property for a Service bus worker role

倖福魔咒の 提交于 2021-02-07 17:26:33
问题 I am creating a worker role using the service bus worker role template. It is taking more than a minute for me to process each message. Because of this, i am seeing that the same message is received by the worker role multiple times, roughly one message every minute. I figured that this is because this value defaults to 60 seconds. http://msdn.microsoft.com/en-us/library/microsoft.servicebus.messaging.messagingfactorysettings.operationtimeout.aspx But I am not sure how to increase this value,

Azure Function App Azure Service Bus trigger triggers twice

核能气质少年 提交于 2021-02-05 08:08:50
问题 I'm using Azure Function Apps with a service bus trigger to read a service bus and do stuff with the contents of the service bus message. The service bus receives a JSON serialized object and then I de-serialize the JSON message back to the object in the Function App. However, for some reason whenever something gets sent to the service bus, the trigger fires twice with one being the JSON message and one being a message containing text "Service Bus Message". I have no idea what causes the

Azure Function App Azure Service Bus trigger triggers twice

旧时模样 提交于 2021-02-05 08:07:22
问题 I'm using Azure Function Apps with a service bus trigger to read a service bus and do stuff with the contents of the service bus message. The service bus receives a JSON serialized object and then I de-serialize the JSON message back to the object in the Function App. However, for some reason whenever something gets sent to the service bus, the trigger fires twice with one being the JSON message and one being a message containing text "Service Bus Message". I have no idea what causes the

Using ServiceBusTrigger in the Webjobs SDK 3.x, can the Singleton attribute use a UserProperty as the scope?

坚强是说给别人听的谎言 提交于 2021-01-29 14:58:00
问题 I am using a ServiceBusTrigger to execute code when receiving a message. I would like to use the Singleton attribute to limit which messages can be executed in parallel. This attribute allows specifying a scope bound to properties on the incoming message, such that messages with different values can be executed in parallel but ones with the same value must be done serially. This works when using top level properties on the incoming message object like CorrelationId. Example [Singleton("

Azure Servicebus Queue function trigger called twice

做~自己de王妃 提交于 2021-01-28 18:02:00
问题 I have an Azure function with a ServiceBusTrigger that is being called twice when it is deployed to Azure. It is very easy to reproduce. Just create a new ServiceBus Trigger function and add a message to the queue. Here's the code to send the message: static async Task Main(string[] args) { IQueueClient qc = new QueueClient(_sbConnString, "testing"); string data = "hello"; var msg = new Message(Encoding.UTF8.GetBytes(data)); await qc.SendAsync(msg); await qc.CloseAsync(); } Here's the

Azure Servicebus Queue function trigger called twice

≯℡__Kan透↙ 提交于 2021-01-28 17:47:22
问题 I have an Azure function with a ServiceBusTrigger that is being called twice when it is deployed to Azure. It is very easy to reproduce. Just create a new ServiceBus Trigger function and add a message to the queue. Here's the code to send the message: static async Task Main(string[] args) { IQueueClient qc = new QueueClient(_sbConnString, "testing"); string data = "hello"; var msg = new Message(Encoding.UTF8.GetBytes(data)); await qc.SendAsync(msg); await qc.CloseAsync(); } Here's the