Quantcast
Channel: Service Bus forum
Viewing all 1916 articles
Browse latest View live

How to connect Service bus queue to IBM Websphere Message broker?

$
0
0

From @RodSayers via Twitter

"Do you have anything that explains how I can connect my Azure Service Bus queue to IBM Websphere Message Broker? We are looking for code or instructions in .NET or Java. I already found a forum which discusses the topic, but the link to the solution seems to be dead"

Over DM

Thanks,

@AzureSupport


Java EventHubClient Java 1.7

$
0
0

We are trying to send events to an event hub using java and storm on Azure (Java 1.7), and using the following version of the java event hub sdk: 

<dependency>
   <groupId>com.microsoft.azure</groupId>
   <artifactId>azure-eventhubs</artifactId>
   <version>0.6.9</version>
</dependency>

Is there a build of this that is compatible with Java 1.7? It throws an error java.lang.NoClassDefFoundError: java/time/temporal/TemporalUnit which I believe to be a java version issue.

This is the code with the error:

ConnectionStringBuilder connStr = new ConnectionStringBuilder(namespaceName, eventHubName, sasKeyName, sasKey);
ehClient = EventHubClient.createFromConnectionStringSync(connStr.toString());

Thanks,

Justin

Windows Store App and Notification Hub - Windows Store registration is being deleted on Send

$
0
0

I use Notification Hubs to send Notifications to IPhone and Windows Store app. The IPhone is working perfectly fine, but there is some issue with Windows Store when sending the notification.

Template:

String WindowsTemplateStr = @"<toast><visual><binding template=""ToastImageAndText03""><image id=""1"" src=""https://"" alt=""Customer""/><text id=""1"">$(headlineText)</text><text id=""2"">$(bodyText)</text></binding></visual></toast>";

I use this code to register:

registration = await hubClient.CreateWindowsTemplateRegistrationAsync(userDeviceInformation.ChannelUri, Templates.WindowsNotificationTemplate,
                                new string[]
                                        {
                                            userDeviceInformation.InstallationId,
                                            userDeviceInformation.UserName
                                        });


The registration goes through fine and I can see the tags properly associated using "Service Bus Explorer".

When I try to send the Notification this is what I do:

                        notification.Add("src", ImageUrl);

                    notification.Add("headlineText", String.Format("Message from {0}", fullName));
                    notification.Add("bodyText", String.Format("Message {0}", message));

When the notification is sent, nothing is received on the device; and I see the registration is also being deleted.

I can't seem to find what is causing this behavior.

Any ideas ?



Timeout when connecting to Servicebus relay

$
0
0

Hello

I've got a problem when my worker role is connecting to a service bus relay. It has worked for atleast two years but it suddenly stopped working 4 days ago. Do anyone know if MS changed something that could cause this or any other tips on how to fix the problem.

We have services running on our customers servers and they create the relays on the service bus and this works fine. Creates when I start my service and deletes when i stop the service. But when my worker role wants to connect to the relay i get a timeout after a short time and I have no clue on what to do now. 

The code for opening the channel:

        public bool OpenChannel()
        {
            //start channel if it is null
            //_channel.Abort();
            if (_channel == null)
            {
                try
                {
                    ServiceBusCreateChannel(CustomerLicense);
                    if (_channel == null)
                        return false;
                    _channel.Open(new TimeSpan(1, 0, 2, 30));
                }
                catch (CommunicationException ex)
                {
                    //we dont log that the channel is down. Otherwise we just flood the log.
                    //the heartbeat takes care of showing if the channel is down.
                    //cls.Logger.LogMessage(ex, "Service channel down for customer" + _customerId);
                    if (_channel != null)
                        _channel.Abort();
                    _channel = null;
                    return false;
                }

                catch (Exception ex)
                {
                    //we log thisone because its some other error than the channel is down.
                    //Logger.LogMessage(ex, "Service channel error for customerLicense" + CustomerLicense);
                    if (_channel != null)
                        _channel.Abort();
                    _channel = null;
                    return false;
                }

            }
            //just MAKING BLOODY sure that the thing is opened and is not in some sort of limbo.
            //we do not try to open it at once. We let the callee sleep and try again and it will open
            if (_channel.State != CommunicationState.Opened)
            {
                if (_channel != null)
                    _channel.Abort();
                _channel = null;
                return false;
            }

            return _channel.State == CommunicationState.Opened;
        }

        private void ServiceBusCreateChannel(Guid serviceBusId)
        {
            //todo: get these settings to the database.
            //each setting is unique per customer. Just Set a new endpointaddress per customer
            string serviceNamespace = "sb://infowell.servicebus.windows.net/" + serviceBusId.ToString().Replace("-", "").ToLower();
            string issuerName = "Owner";
            string issueSecret = "hidden";
            var sharedSecretServiceBusCredential = new TransportClientEndpointBehavior
            {
                TokenProvider = TokenProvider.CreateSharedSecretTokenProvider(issuerName, issueSecret)
            };
            var channelFactory = new ChannelFactory<IMessageChannel>();
            channelFactory.Endpoint.Address = new EndpointAddress(serviceNamespace);
            var tcpBinding = new NetTcpRelayBinding
            {
                ConnectionMode = TcpRelayConnectionMode.Hybrid,
                MaxReceivedMessageSize = 20000000,
                MaxBufferSize = 20000000,
                MaxBufferPoolSize = 20000000,
                ReaderQuotas = new XmlDictionaryReaderQuotas
                {
                    MaxDepth = 32,
                    MaxArrayLength = 20000000,
                    MaxStringContentLength = 20000000
                },
            };
            tcpBinding.Security.Mode = EndToEndSecurityMode.None;
            channelFactory.Endpoint.Binding = tcpBinding;
            channelFactory.Endpoint.Contract.ContractType = typeof(IMessageChannel);
            channelFactory.Endpoint.Behaviors.Add(sharedSecretServiceBusCredential);
            _channel = channelFactory.CreateChannel();
            _channel.OperationTimeout = new TimeSpan(1, 0, 2, 10);

        }

Consumer Groups, How it works?

$
0
0

Hi every one.

I'm using eventhub for about 1year and I will start now play with complex event processing, my doubt it is, if each consumer group it is a different copy of the stream.

For example

the $default consumer group is a file, if I create a xpto consumer group will be a differente file under the hood?

Thx, sorry for my English

Service Bus on reserved IP?

$
0
0

Hi,

There are lots of customers that don't accept the wide IP ranges that must be white listed for Service Bus access.
This is a reality that we must handle, regardless of tecnical explanations of the Service Bus internals.

Is there any way to use reserved IP for Service Bus?

If not, is the only alternative to use Azure Pack on Windows Server (creating a private Azure cloud)?

Regards Tomas.

event hub client for UWP

$
0
0

Hi

My UWP app wants to log events to event hub.  

How would I go about doing that?  Or do I have to stick with ApplicationInsight and dump the data to BlobStorage or SQL?

Thanks!

Azure IoT Hub Microsoft.Azure.Devices not compatible with Universal Windows

$
0
0

Hi Everyone,

Does anyone know how you can use IoT hub on Universal Windows and Windows 10 IoT if Microsoft have not released a nuget package for Microsoft.Azure.Devices which is compatible with Universal Windows.

The package Microsoft.Azure.Devices.Client is compatible however you need Azure.Devices too to access the RegistryManager class and register your device to send data to the hub.

Any ideas how we can use IoT hub with Windows 10 IoT except using the REST endpoints for the IoT hub?

Also to the MSDN admins there is no forum for EventHub or Azure IoT, I have had to put this in Azure Notification Hubs for now.

Cheers,

Gerry


Dynamics AX Hybrid

$
0
0

Hi all,

I have a client who running Dynamics server 2012 R2, he is already reached his maximum capacity of the hardware resource. He is looking for hybrid scenario that he can put new workload on azure. I am new to Dynamics AX please help me to resolve this.

Thanks

Topic subscription list is missing some subscriptions

$
0
0

Hello, we are developing a produce hosted in Azure and we are using the service bus to dispatch worker tasks. We have a topic in which each worker type creates a subscription. When we list subscriptions using GetSubscriptions in NamespaceManager class from WindowsAzure.ServiceBus 3.2.2 SDK, some subscriptions are missing. We have around 210 subscriptions and it list around 205 subscriptions. So we miss 5. If we call again the API, some missing subscriptions will re-appear and others might be missing. They are not new or deleted subscriptions since creation time is months ago.

Also we observe the same behavior through Azure classic console and Azure ServiceBus Explorer 3.0.4. The problem appears only when number of subscription around 200.

Is there a way to get consistent list of topic subscriptions?

Service bus internal error

$
0
0

Hi Team,

we meet a problem that on the service bus dashboard, we saw there is a internal server error, request time is one hundred,

we would like to know is there a way to check what the error details information ? or how to detect the root cause of the server error problem to avoid this kind of problem not come out again.

Thanks in advance.

AutoCommit offset in EventHubReceiver.

$
0
0

Hi,

I've created a EventHubReceiver for a particular partition and Started Receiving the messages. But noticed that LastEnqueuedOffset is getting incremented when i checked the LastEnqueuedOffset in the GetPartitionRuntimeInformation method. . So, is EventHubReceiver autocommits the offset ? I know that offset management is to be done by the user in case of low level consumer(eventhubreceiver).  Please someone clear my doubt. 

Difference between LastEnqueuedSequenceNumber and LastEnqueuedOffset in PartitionRuntimeInformation Class.

$
0
0
What is the difference between LastEnqueuedSequenceNumber and LastEnqueuedOffset in PartitionRuntimeInformation Class  in Event Hub ?

Service Bus for windows with Azure Service Fabric not working together?

$
0
0

When there will be a Service Bus for Azure Service Fabric on-premise? 

Azure Service Bus - is not on-premise

Service Bus for Windows work with old version named Windows Service Fabric and can not be run on the same machine.

Any road map update on  this?

Service Bus client library v.1.0 compatibility with SB 1.1 for Windows Server (on premise)

$
0
0
I have an application that currently is using Service Bus 1.0 for Windows Server (on premise), accessed using Service Bus 1.0 client library (.NET) (taken from NuGet: https://www.nuget.org/packages/ServiceBus.v1_0/1.0.1 , assembly version 1.8).

If I upgrade to Service Bus 1.1 for Windows Server (on premise), will be client applications (that are using v. 1.0 client library) still work without problems?
To put it another way: is the Service Bus 1.0 client library officially compatible with Service Bus 1.1 for Windows Server?
Does Microsoft support this combination?
(the release notes are not very clear on this aspect:http://msdn.microsoft.com/en-us/library/dn282143.aspx )

BrokeredMessage.CompleteAsync always gives ObjectDisposedException

$
0
0

message.CompleteAsync().ContinueWith(tr =>
                    {
                        if (tr.Exception != null)
                        {                       
                            Trace.TraceWarning("Failed to Complete BrokeredMessage \n" + tr.Exception.ToString());
                        }
                    });

--------------------------------------

Failed to Complete BrokeredMessage 
System.AggregateException: One or more errors occurred. ---> System.ObjectDisposedException: BrokeredMessage has been disposed.
   at Microsoft.ServiceBus.Messaging.BrokeredMessage.ThrowIfDisposed()
   at Microsoft.ServiceBus.Messaging.BrokeredMessage.EndComplete(IAsyncResult result)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.ObjectDisposedException: BrokeredMessage has been disposed.
   at Microsoft.ServiceBus.Messaging.BrokeredMessage.ThrowIfDisposed()
   at Microsoft.ServiceBus.Messaging.BrokeredMessage.EndComplete(IAsyncResult result)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)<---

Moving to the Azure Service Bus - Some questions

$
0
0

Hi,

We currently use BizTalk for integrating a number of systems.

We are looking to move away from BizTalk due to licence costs and training costs and a steep learning curve.

In addition to this our BizTalk solution is largely used as an ETL with some workflow.

The options we have are:

1. Rebuild current solution using SSIS with Windows Workflow Foundation.

2. Move to an Enterprise Service Bus Model.

If we go with option 1 we have the skillset and we will make huge savings on licences(no longer require BizTalk). However, if we have a new requirement to integrate with another application we have to extend the SSIS Package every time and given that we are using SSIS there are only certain applications we can integrate with.

Regarding option 2, how easy is it to extend and why should we use this over option 1? What else does it give us?


Any advice appreciated.


CG

Unable to create service bus under CSP subscription using PowerShell

$
0
0

Hi,

I have two types of Azure Subscription 1) CSP Subscription ( through re-seller)  2) Pay As You Go (Direct Subscription)

I am using following PowerShell command (using rm account) to provision Azure Service Bus

New-AzureRmResourceGroupDeployment -ResourceGroupName TestRG1  -TemplateUri

Using the above command ,we have successfully added a new service bus under Pay As You Go subscription.But when tried same way under CSP subscription ,we get the error following error 

New-AzureRmResourceGroupDeployment : - Error: Code=DisallowedProvider; Message=The operation is not 
permitted for namespace 'Microsoft.ServiceBus'" 



What is going wrong here? Is there any limitation under CSP subscription that there is no way to provision few services like service bus etc.

Since under CSP subscription, only ARM is available and no option for service bus management through classic portal ,so only option is to use PowerShell to provision services.


Thanks


Consumer Group Create option disabled

$
0
0

Hi,

I have setup a trail account on Azure and trying to configure service bus and event hub as per the article here:

https://azure.microsoft.com/en-us/documentation/articles/stream-analytics-twitter-sentiment-analysis-trends/

After creating eventhub, the consumer group create button is disabled. Any ideas why this might be.

Setting partition-key in log-to-eventhub policy in API management

$
0
0

I have an API that is set up in API management, and I'm using the log-to-eventhub policy to send data to an event hub after an API call. Is there a way to use data within the request to set the partition-key value in the policy? What kinds of values can I pass to the partition-key attribute?

Can I use policy expressions like these?:  https://msdn.microsoft.com/library/azure/dn910913.aspx#PolicyExpressionsUsage

Do you have any examples of partition-keys passed with this policies that aren't just constant strings? I'm having trouble finding any examples of this.


Viewing all 1916 articles
Browse latest View live