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

AMQP on Service Bus 1.1 (On-Premise)

$
0
0

Hi,  I would like to Use Windows Service Bus 1.1 on premise using the AMQP transport type from my .Net (and Java) applications. 

I have two questions:

Are the queues and topics I create via the .NetMessaging client, visible from an AMQP client ?

and

Can anyone guide me on how to create a connection string using the AMQP transport type to an on-premise Service bus ?  All the documentation I can find only mentions connecting to an Azure implementation.  (.Net and Java please).

(especially regarding Secret Issuer Name, and Secret. Where are these set ? )

Thanks

Geoff.


Push Notification System is throttling the app

$
0
0
I have been testing the Notification Hub and am not clear about service delivery. Sometimes notification arrives as soon as it is sent and sometimes it doesn't arrive for many minutes. When I use SB Explorer I sometimes get 'The Push Notification System is throttling the app'. The question is, when does the system start throttling? I am doing testing and by no means I am generating a lot of notifications. And if the system is throttling, how do I know the capacity of the system?

Frank

Service Bus Security 101

$
0
0

OK, service bus is really nifty but the security story is driving me bonkers. Can anyone provide a document/sample that illustrates an end-to-end example of how SB security is supposed to work? Is there a simply way to just say "allow all/anonymous connections"? I really just want to get my design up-and-running without being bothered by all of the ceremony security demands. On the other hand, if that is not possible,

1. How can I connect to a queue from outside of the domain in which the service bus is hosted?

2. How can I connect to a queue from within the same domain but under the IIS identity or the identity of a generic service account?

I cannot get my security problems to go away; the only way I've been able to connect to the service bus is to run under the same account as the queue owner....

Thanks.

Notifcation Hubs - WinForms Client

$
0
0

Are Service Bus Notifications Hubs a reasonable approach for push notifications from a Web Role to a WinForms client?   Where the notifications are not broadcast to all clients but instead tailored for specific clients.

Or is this technology really just targeted at mobile devices?

Thanks in advance


Richard.

Issues with Service Bus for Windows Server

$
0
0

I installed Service Bus for windows server and here are the problems I have.

If I installed in my company laptop, it requires me to be connected to the company network or VPN for the service bus to work. (Windows 7 x64) Is there anyway I can have this run using without being connected to the network at all.

When I installed to my home desktop (Windows 7 x64), which does not have domain, I could not use the Visual Studio Server Explorer or Service Bus Explorer to connect to the service bus using the connection string. I get a TokenProvider error."Token Provider returned message '.'"

With my windows 8 laptop, I could not configure the service bus to start with. The Service Bus Message Broker service is stuck in a starting state. I could not do anything beyond that. The installation failed when it was configuring the service and I noticed that the Broker Service was stuck at "starting" forever.

What are the minimum requirements for Service Bus Windows Server and how do we configure for each of the scenario? It is a wonderful feature of Azure but it is just lack of documentation for us to know how to configure for the above scenarios. Can someone help me get past these issues and come to a usable state instead of using the live "Azure Service Bus" for testing?

=====

After one day with no answers

Is anyone from Microsoft reading this please? Can you help on this question or suggest the site where I can get some help from. Thanks for your time

 




asp.net mvc deploy intranet application help

$
0
0

Im trying to deploy a intranet mvc 4 application on a server 2012 box, yet cnt seem to get it going.

The error i get is 

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Im rather new at this, please help.

Notification Hubs, call RegisterNativeAsync returns RegistrationAuthorizationException 401 Unauthorized - Why?

$
0
0

Trying out using Windows Azure Notification Hubs in a Windows Phone 8 application.

When I call RegisterNativeAsync passing the httpChannelUri, it throws a RegistrationAuthorizationException:

HTTP Details:

Status: 401

Reason: Unauthorized

Full content: <Error><Code>401</Code><Detail>MalformedToken: Failed to parse simple web token..TrackingId:eff08eb8-4d74-4ff0-90a8-6f7b5e621f32_G15,TimeStamp:8/19/2013 2:20:00 PM</Detail></Error>

 

Why is this? I can't find any documentation explaining the reason.


Technical Evangelist, Microsoft DPE

Service Bus Error on RelayBinding

$
0
0

I am having WCF with Endpoint for relay Binding, I am getting below error when service is activated in my dev server. OS is Windows Server 2012

The token provider was unable to provide a security token while accessing 'https://XXXXXXXXXX-sb.accesscontrol.windows.net/WRAPv0.9/'. Token provider returned message: 'The request was aborted: The request was

but in my local machine is working fine.


Load balancing for REST in Service Bus

$
0
0

Hello all,

I am researching how to use load balancing in Service Bus. In the sample of load balancing in Service Bus SDK, I see it uses TCP binding. How can we do load balancing using REST? In my situation, I will have many WCF services hosted in different machines that use REST protocol to expose the same URIs, and clients will call via HTTP request to get information from services, the client will send request to Service Bus, then I would like Service Bus will find only one of available services. Can anyone advise me how to do this?

Thanks.

Complete / CompleteAsync blocking processing?

$
0
0

Using Service Bus for Windows Server 1.1, trying to build out a asynchronous solution using the TPL methods that will work correctly.  I'm using ReceiveMode.PeekLock and the throughput of the queue that I'm testing with is fantastic until I add the code to complete the brokered message at which point the throughput drops.

Here is the high throughput version:

public void Start()
        {
            _client.OnMessageAsync(MessageReceived);
        }

        private async Task MessageReceived(BrokeredMessage arg)
        {
            await Task.Run(() =>
                {
                    arg.GetBody<SampleMessage>();
                });
        }

This will rip through tens to hundreds msgs/sec.

When I add any version of the Complete() call, it drops to taking several seconds to process a single message.  Some examples I've attempted below:

First attempt:

private async Task MessageReceived(BrokeredMessage arg)
        {
            await Task.Run(() =>
                {
                    arg.GetBody<SampleMessage>();
                    arg.Complete(); 
                    // or arg.CompleteAsync()
                });
        }


Second Attempt:

private async Task MessageReceived(BrokeredMessage arg)
        {
            await Task.Run(() =>
                {
                    arg.GetBody<SampleMessage>();
                });

            await arg.CompleteAsync();
        }


Third Attempt:

private async Task MessageReceived(BrokeredMessage arg)
        {
            await Task.Run(() =>
                {
                    arg.GetBody<SampleMessage>();
                }).ContinueWith(t => arg.CompleteAsync());
        }

I think these should be equivalent in their behavior, but all have the result of taking multiple seconds to process a single message.

I'm guessing that some sort of locking/blocking is taking place on queue operations, but I'm not sure how to diagnose this, and I haven't seen anything in the documentation suggesting so.

Any thoughts?

Thanks,

Andrew


Load balancing with Service bus (REST)

$
0
0

Hello all,

I am researching how to use load balancing in Service Bus. In the sample of load balancing in Service Bus SDK, I see it uses TCP binding. How can we do load balancing using REST? In my situation, I will have many WCF services hosted in different machines that use REST protocol to expose the same URIs, and clients will call via HTTP request to get information from services, the client will send request to Service Bus, then I would like Service Bus will find only one of available services. Can anyone advise me how to do this?

Thanks.

Load Balanced Service Bus

$
0
0

We have a 3 node, on premise, service bus 1.0 cluster and need to load balance client requests across the 3 gateway services.

I understand the gateway service will load balance requests across the cluster, but don't want all requests going through the 1 gateway service.

We have set up a hardware load balanced VIP for the 3 gateway services, but when I use SB explorer to connect to the cluster, it connects ok but trying to view a queue I get the following exception.

Exception: Method not found: 'Microsoft.ServiceBus.Messaging.MessageCountDetails Microsoft.ServiceBus.Messaging.QueueDescription.get_MessageCountDetails()'.

I know running Get-SBClientConfiguration gives me a connection string with all 3 servers in, but as I will be connecting to the cluster using a WCF client, I'm not sure if this is supported ?

Can anyone help ?

Does Sevice Bus 1.1 (On-Premise) support relay services?

$
0
0
Can the relay services be used against an on-premise installation?

Can't access Service Bus via HTTP REST

$
0
0

Hello,

I have Service Bus for Windows Server 1.1 and I want to connect to a queue via HTTP REST protocol.

I can get a token using the following address :

 https://ppatierno-pc:9355/ServiceBusDefaultNamespace/

With my account credentials but when I try to connect to the queue, I receive the error on connection to the remote server.

The code is the following:

string body = "foo";

            string token = GetOAuthAccessToken(new
                Uri("https://ppatierno-pc:9355/ServiceBusDefaultNamespace/"),"myuser", "mypassword", TimeSpan.FromMinutes(10));
            string fullAddress = "http://ppatierno-PC/ServiceBusDefaultNamespace/testqueue/messages";
            WebClient webClient = new WebClient();
            webClient.Headers[HttpRequestHeader.Authorization] = token;
            webClient.Headers["Content-Type"] = "text/plain";
            webClient.UploadData(fullAddress, "POST", Encoding.UTF8.GetBytes(body));   

Why ?

Thanks,

Paolo.

 

Paolo Patierno

Service Bus Topic : The remote server returned an error: (401) Unauthorized

$
0
0

I am trying to use a simple client to create a topic, however, the client doesn't work in a client machine even I follow the steps to export certificates to client machines.

If the client is in server, there is no any issue.

Same, it's working with a Azure Service Bus connection string.

anyone can help?

 Thanks.


CreateQueue error > The remote server returned an error: (404) Not Found. No service is hosted at the specified address

$
0
0

I have Service Bus 1.0 installed on a separate server, as well as workflow manager 1.0

I am writing my first Queue app.

I can say my connection string is correct.

namespaceManager.CreateQueue(QueueName); 

Error:

MessagingEntityNotFoundException

The remote server returned an error: (404) Not Found. No service is hosted at the specified address..TrackingId:ec9e13aa-35a6-4a03-9c41-399717e626f0_GMYHOST,TimeStamp:9/21/2013 3:43:24 AM


Thanks, Roy Kim

Push message to HTTP endpoint from Service Bus

$
0
0

Is there any way to push message to HTTP endpoint from Service Bus?

My scenario is I'm publishing messages to Service Bus from Azure Application (WCF/Web Site). I wanted to push messages to NodeJS Server as a endpoint which accept POST/GET HTTP requests. 

iOS Ad Hoc Notification Not Arriving

$
0
0

I have a notification hub set up. I have 2 endpoints, one for dev and one for production. I am using iOS.

I had both the ad hoc and dev working and then not. It is like it is hit and miss.

Currently the Dev will work and gets messages just fine.

When I build for Ad Hoc, however, the messages never get back to the device.

I am using a real device.

The hub monitor shows successful registration. It also shows incoming messages and successful notifications.

And yet on the device I never hit the method that is the incoming message.

I have added NSLogs and looked at the console output running the Ad Hoc since you can't debug Ad Hoc. I see the response from registration as successful. I just never see the message notification.

For Ad Hoc I have the different provisioning profile and a different cert for production and everything in the Notification Hub is set up as a separate production one (as indicated above).

What do I do?

Splitter/Gather Pattern

$
0
0
Where do I learn about Splitter/Gather pattern?! I am using Windows Azure Service Bus and not BizTalk.

Sevice Bus 1.1 (On-Premise): Add-SBHost using local account

$
0
0

Hello, does Service Bus 1.1 support configuration using local accounts on a windows not joined a domain? With 1.1 preview it was possible, and documentation for 1.1 RTM suggest so too.

But when I tried to install SB 1.1 RTM. Add-SBHost takes a very long time then fail with message: "Failed to start Service Bus Gateway Service."

Thanks for the help.

Viewing all 1916 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>