A Curious Mind
#tastic

Windows Services

Monday, November 03, 2008 11:13 AM

So I learned a lesson this week (Well actually a while ago now). Window's services have this neat feature called 'Service Dependencies.' This aspect of windows lets you set certain 'wait for it' dependencies! Awesome, this means if your service needs SQL or MSMQ to be started before it can start working windows will make sure this happens. I admit I felt a bit dumb when I wondered why my services weren't working, but my friends PhatBoyG and Scott V schooled me in some basic Win Service k-nowledge.

Since I started this blog post I have exposed this concept in the MassTransit host project. Basically trying to make windows services a bit easier and have them work well with MassTransit hosted services as well.

Watch the masstransit wiki for a soon to be written walk through of hosting a win service with MT.Host.

-d


Feedback

# re: Windows Services

Another cool thing to explore is hooking MT to WPA.
So a message arriving to the queue will start MT host process, and you get auto fail over detection and recovery 11/3/2008 12:28 PM | Ayende Rahien

Comments have been closed on this topic.