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

WCF AutoStart issue when hosted in Web Role and relying on Service Bus

$
0
0

Hi,

I have been googling this topic for a day now and I cannot find any suitable solution, so I hope I could maybe find some help here. My problem is the following:

I'm hosting a WCF service in an Azure Web Role. That WCF service relies on Service Bus to pull out messages. I have implemented the solution described in Tom Hollander's article(http://blogs.msdn.com/b/tomholl/archive/2011/10/07/using-service-bus-queues-with-wcf.aspx). It works well except for the infamous warm up(aka autostart) problem. Indeed, if nothing is done, by default, I need to manually request the service through its url so it can create a first outbound connection to the service bus and start pulling messages out of it. There are a lot of great articles that explain how to use Windows Server AppFabric with IIS 7.5 to enable the autostart. That's great and I have successfully managed to implement this solution by manually remote desktoping to my Azure Web Role, then installing Windows Server AppFabric, then apply the right config to the applicationHost.config and it works. But now, how do I automate all these steps so I can use my normal Publish from VS2010? I guess a may need to configure the ServiceDefinition and ServiceConfiguration + the WebRole.cs, but I cannot find exactly how. Is there anybody who could shed the light on my problem or point me in the right direction. 

Thanks a lot


Viewing all articles
Browse latest Browse all 1916

Trending Articles



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