I'm sure this has been asked before (but can't find it anywhere): How can I post a message into an Azure Service Bus queue from within a SQL-Server stored procedure (CLR)?
Thanks!
Leon
I'm sure this has been asked before (but can't find it anywhere): How can I post a message into an Azure Service Bus queue from within a SQL-Server stored procedure (CLR)?
Thanks!
Leon
Hi,
I need to securely allow my web api outside the server securely. I read about the azure service bus relay for secured access . As far i have searched , they have given for WCF . Is this applicable to web api . If possible means could you please share some useful links.
~Selva
Good evening,
I created a new Azure Servicebus namespace earlier today (by now it's been 4..5 hours) but even now and after refreshing, logging in and out from the Management Portal, the creation of the namespace is still in state 'Activating'.
Usually this is done in a few seconds, minutes at most. According to the Azure status page there's nothing wrong/scheduled for the service bus service in my region (West EU) and as I cannot cancel/stop/delete that creation.. is there anything else I can do or does someone know what to do?
Thanks,
-Jörg B.
*Update: it has been >= 18 hours now.. & it is still in 'Activating' state.Hi
I have set the message retention day to 1 for my eventhubs but I am anyway seeing messages older than 1 one day in my event hub when I retrieve them.
Regards
Not able to view ACS connecting string which is shown in this link 
I have 2 azure accounts in one of the account its visible and in the other account its not visible.
How to activate it....
Hi
I have an eventhub and messages to this eventhub is sent from different sources/customers. I have a customerid field in my message. They have different Policies and different SAS keys to send with. Is there a way to stop users sending messages for each other? Can I force them sending messages with just their own customerids? Can I somehow in stream analytics for example filter out the messages that are not sent from customers (checked with customerid in my message) with their own SAS keys?
Or what is the preferred way of doing this? I can use different eventhubs as well but I just wonder if there is a solution to this problem?
Regards
Last week, new Azure Java SDK v0.7.0 has released. And I noticed that the JAR ZIP file has updated its part of JAR File from v0.6.0 to v0.7.0. But why ServiceBus in it didn't update? Still use v0.6.0, not v0.7.0? From github, I know ServiceBus has also updated in new v0.7.0 released. I need that new module. Thanks.
Here is Package for Azure Libraries for Java Download URL:http://dl.msopentech.com/lib/PackageForWindowsAzureLibrariesForJava.html
Hi
I have an eventhub and messages to this eventhub is sent from different sources/customers. I have a customerid field in my message. They have different Policies and different SAS keys to send with. Is there a way to stop users sending messages for each other? Can I force them sending messages with just their own customerids? Can I somehow in stream analytics for example filter out the messages that are not sent from customers (checked with customerid in my message) with their own SAS keys?
Or what is the preferred way of doing this? I can use different eventhubs as well but I just wonder if there is a solution to this problem?
Regards
I am working with windows azure service bus to send push notifications to my app on both iOS and Android
I followed the steps of uploading the push certificate twice before and it worked good on the production
Suddenly , by working on a new project , It stopped working in the new hub and in the old hubs although i am still uploading the Push certificate files as written in the reference
On sending , the hub sends to Android but fails to send to iOS
So is there any probability that the hub could have issues handling the push certificates ? or is it an issue APNS ? or did i miss handling something ?
Waiting for your response as soon as possible
Thanks in advance
ServiceBus unable to provide a security token
We have been using serviceBusses in azure for over a year and suddenly this happens. We have been stuck on this issue for 6 days now.
the code is
System.Net.ServicePointManager.DefaultConnectionLimit = int.Parse(Loader.Instance.SettingsForServer.SbDefaultConnectionLimit);
_serviceHost.AddServiceEndpoint(
typeof(IMessage),
tcpBinding,
new Uri("sb://infowell.servicebus.windows.net/" + Loader.Instance.CustomerLicense.Replace("-", "").ToLower())
).Behaviors.Add(new TransportClientEndpointBehavior { TokenProvider = TokenProvider.CreateSharedSecretTokenProvider(Loader.Instance.SettingsForServer.SbIssuerName, Loader.Instance.SettingsForServer.SbIssuerSecret) });
_serviceHost.Open();
and it failes with
The token provider was unable to provide a security token while accessing 'https://infowell-sb.accesscontrol.windows.net/WRAPv0.9/'. Token provider returned message: 'The request was aborted: The request was canceled.'.
and the stack trace is:
Exception rethrown at [0]:
at Microsoft.ServiceBus.Common.ExceptionDispatcher.Throw(Exception exception)
at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
at Microsoft.ServiceBus.TokenProviderHelper.EndGetAccessTokenCore(IAsyncResult result, String& expiresIn)
at Microsoft.ServiceBus.TokenProviderHelper.EndGetAccessTokenByAssertion(IAsyncResult result)
at Microsoft.ServiceBus.SharedSecretTokenProvider.OnEndGetToken(IAsyncResult result, DateTime& cacheUntil)
at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResult.OnEndTokenProviderCallback(IAsyncResult result, DateTime& cacheUntil)
at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResultBase`1.OnCompletion(IAsyncResult result)
at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResultBase`1.<GetAsyncSteps>b__f(T thisPtr, IAsyncResult r)
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
Exception rethrown at [1]:
at Microsoft.ServiceBus.Common.ExceptionDispatcher.Throw(Exception exception)
at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
at Microsoft.ServiceBus.TokenProvider.EndGetToken(IAsyncResult result)
at Microsoft.ServiceBus.TokenProviderUtility.GetToken(TokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
at Microsoft.ServiceBus.RelayedOnewayTcpListener.RelayedOnewayTcpListenerClient.Connect(TimeSpan timeout)
at Microsoft.ServiceBus.RelayedOnewayTcpClient.EnsureConnected(TimeSpan timeout, Boolean isRetry)
at Microsoft.ServiceBus.RelayedOnewayTcpClient.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at Microsoft.ServiceBus.RelayedOnewayTcpListener.OnOpen(TimeSpan timeout)
at Microsoft.ServiceBus.Channels.RefcountedCommunicationObject.Open(TimeSpan timeout)
at Microsoft.ServiceBus.RelayedOnewayChannelListener.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at Microsoft.ServiceBus.RelayedSocketListener.Open(TimeSpan timeout)
at Microsoft.ServiceBus.DemuxSocketManager.RegisterListener(TimeSpan timeout, DemuxSocketListener listener)
at Microsoft.ServiceBus.DemuxSocketListener.Open(TimeSpan timeout)
at Microsoft.ServiceBus.HybridConnectionListener.Open(TimeSpan timeout)
at Microsoft.ServiceBus.Channels.BufferedConnectionListener.Open(TimeSpan timeout)
at Microsoft.ServiceBus.Channels.ConnectionAcceptor.Open(TimeSpan timeout)
at Microsoft.ServiceBus.Channels.ConnectionDemuxer.StartDemuxing(TimeSpan timeout, OnViaDelegate viaDelegate)
at Microsoft.ServiceBus.Channels.ConnectionDemuxer.Open(TimeSpan timeout)
at Microsoft.ServiceBus.SocketConnectionTransportManager.OnOpen(TimeSpan timeout)
at Microsoft.ServiceBus.Channels.TransportManager.Open(TimeSpan timeout, TransportChannelListener channelListener)
at Microsoft.ServiceBus.Channels.TransportManagerContainer.Open(TimeSpan timeout, SelectTransportManagersCallback selectTransportManagerCallback)
at Microsoft.ServiceBus.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
at Microsoft.ServiceBus.Channels.ConnectionOrientedTransportChannelListener.OnOpen(TimeSpan timeout)
at Microsoft.ServiceBus.SocketConnectionChannelListener`2.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open()
at OPC.Main.ServiceBusOpenChannel() in d:\src2013\...
There have been no codechanges and we are at loss what this could be.
Is there anyone there that could point us in the right direction? We have checked that the certificates are still valid.
I created a shared access policy with only send permission for a service bus queue. I used to send messages from web role to service bus using service bus connection string. Now the requirement is , instead of using service bus connection string I need to create a shared policy for service bus Queue with only send permission and use that policy for sending messages to service bus from web role.
I need to do this in c#, but I do not know how to create connection string for servicebus queue with shared access policy. Kindly explain how to get Service bus Queue Shared access policy connection string in c#.
Hi,
Greetings!!!
I want to deploy Dynamics Ax 2012 R3 on azure.Can I use it for production purpose or is it still in Beta?
Thanks & Regards,
Kaveri T
Hi,
I am trying to get the sender example from the azure-service-bus-sample working on Linux based system (https://github.com/genieplus/azure-service-bus-samples/blob/master/proton-c-queues-and-topics/sender.c). However, when I try to execute it, it always fails
with the following traces:
Sending messages to amqps://testRule:***@MY_DOMAIN/ServiceBusDefaultNamespace/q1
CALL pn_messenger_set_outgoing_window... RETURNED 0
CALL pn_messenger_set_blocking... RETURNED 0
CALL pn_messenger_start... RETURNED 0
CALL pn_messenger_put... RETURNED 0
CALL pn_messenger_send... recv: Connection reset by peer
[0x1449a80]:ERROR amqp:connection:framing-error SSL Failure: Unknown error.
CONNECTION ERROR connection aborted (remote)
RETURNED 0
I tried to add the auto generated certificate as a trusted certificate via
pn_messenger_set_trusted_certificates (messenger, "/ca/trusted/);
I got a different error message:
Sent BytesMessage with id
c99a2261-843e-4ebf-846c8fe799e8fc0b
Message status PN_STATUS_ABORTED
Final send status is: failed, never sent on network
CALL pn_messenger_settle... RETURNED 0
CALL pn_messenger_put... RETURNED 0
CALL pn_messenger_send... [0x18aaad0]:ERROR amqp:connection:framing-error SSL Failure: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
RETURNED 0
Any idea how can I fix this SSL error?
Hi,
I have some queries in azure service bus brokered messaging.Let me post it one by one.
1) For our cloud based applications we decided to move to servcie bus as it offers many advantages. we find the below two will better suits
-> Topics/subscriptions
->Event Hubs
As far we have anlaysed both follows pub/sub pattern. Which one will be the most efficient.Event hubs uses the EventProcessorhost class which process the data on multithread and also it requires blob storage too.
Is it an advantage over topics/subsriptions.If means in what way it has advantage over topics/subscription pattern
We want our project's message transmission to be the most efficient as N number of users may access the application.So we would like to go with the efficient one.
2)They have been telling the service bus processes the messages in an asynchronous manner . Here's the case i have a topic and simulatanelusly N number of users pushing messages to the topic and N number of users reading message from paricular subscription under particular topic. Is my all users get access to the servcie without much time delay?
3)I have a topic called "cloud 1" and have subscription user 1 . When am passing a message to the toipc called cloud 1 and obviously user1 will receive the message . Consider this case my producer and consumer both are online. Producer sending a message to the cloud1 topic . Consumer1 is subscribed to the topic cloud1 and without laoding/refreshing the page he need to get the message in his page(like the singal R in technical)
Awaiting clear and faster response
With Regards,
Selva
Hi,
We are receiving a MessageLockLostException when we try to execute
brokeredMessage.Complete();
on a message received by a subscription. I checked for possible causes for this and came up with information
here which states that the lock duration on a subscription cannot be set. If a process is unable to complete a message within 5 minutes, then the lock is released.
My requirement is that if I have reached till "brokeredMessage.Complete();" then I have essentially finished processing a message and my worker should not process it again.
Is there any way this can be achieved? Say I catch the MessageLockLost exception, is there a way to delete the message from the subscription? I also read something about renewing the lock
here, but that pertains to a service bus queue. Can I do something similar to this without spawning another thread?
Thanks,
Nikhil
Hello,
just to point that there is a mistake in the following documentation page ...
http://msdn.microsoft.com/en-us/library/azure/dn790190.aspx
In the "Create Consumer" section there is a sample code with EventHubSubscriberGroup class that doesn't exist. It's the EventHubConsumerGroup .. right ?
Thanks,
Paolo
Paolo Patierno
Hello,
as explained here http://msdn.microsoft.com/en-us/library/azure/dn789974.aspx I can create a SAS rule to allow devices to send only to an event hub.
Now I can use this rule and the related connection string to create an EventHubClient object who is capable to send only to the event hub. In this case I can't have fine grained control on devices ... I mean, all devices created by Azure SDK APIs with this SAS rule are capable only to send and If I want to block some devices, I can't ... removing the rule I'll block all devices.
For fine grained control there is the publisher concept (as an endpoint on the event hub).
Starting from the same SAS rule (for sending only), I can generate more tokens and give each of the to the devices. In this case, without removing the SAS rule I can block single device revoking the token.
Now ... reading on the Event Hub documentation I can't find any API to send data using publisher concept (and using token).
See also AMQP.Net Lite documentation (http://amqpnetlite.codeplex.com/wikipage?title=Using%20Amqp.Net%20Lite%20with%20Azure%20Server%20Bus%20Event%20Hub&referringTitle=Documentation) ... I can send with publisher concept but without specifying token, only SAS rule (key name and shared key).
My understanding is that the token is useful only with HTTP REST APIs (put the toke in the Authorization header) ... is it right ?
Thanks,
Paolo
Paolo Patierno
I've been researching event hubs and I'm trying to find a good way to auto scale out my event consumer worker roles. So far, I've only found documentation that suggests using CPU usage as a metric to auto scale, but that obviously won't work if my worker roles are I/O bound. What I really want is some way to measure the number of unprocessed messages for a consumer group which would indicate that I'm falling behind in processing incoming messages for that group, but I haven't found a way to measure this. Is there some way to do this? Or am I going about this the wrong way?
Thanks in advance for any suggestions you may have.
Hi,
I am receiving messages from a queue using Peek Lock. The processing of the message could take longer than 5 minutes in some cases. I have found that a queue can have a maximum message lock time of 5 minutes.
Can anyone tell me how I can extend the time a lock is placed on a message?
I am using Queue.OnMessageAsync() to receive a message.
Thanks for your help.
Graham