PDA

View Full Version : Windows Services in 1.1


maxintech
07-04-2007, 08:18 PM
Sorry for my english.

I tried to use windows services using spring.net 1.1-M1 with .net2.0. But the examples and the the assemblies like Spring.Services.WindowsService.Common.dll are missing. I've downloaded the nightly build 20061021-2204 and works fine after a alittle work.
This feature will exist in the 1.1 (final version)?
I need to know to choose manage windows services with spring o directly with ms.

Thank you in advance

BTW... Which is the release date for the 1.1. final version?

Mark Pollack
07-16-2007, 10:53 PM
Hi,

Windows.Services will not be in the 1.1 release. I believe the usecase that most of the code is addressing is not all that common from feedback Ihave recieved, namely being able to drop in .dlls to a directory and have the service restart. (What is your opinion)

One minor class that maybe useful is to simply tie to gether the lifecycle of the service with that of a spring context, but the amount of code is so minor it might not be worth the effort. I'd start with an approach like that. The release date for 1.1 final is Aug 31st, you can find information on the web site 'roadmap' link.

Cheers,
Mark

maxintech
08-06-2007, 07:50 PM
I think the usecase is too complex for the common use of NT services.
A small set of classes encapsulating the installing/uninstalling stuff and the conversation with the SCM for starting, pausing, restore and shutting down will be a better choice.

I see two scenarios:

One with Spring providing all this stuff in an assembly (DLL) and the application generating one EXE. In the app.config will refer the Object to be converted in a NT service and the configuration (name, description, etc...) to install and uninstall the service (like service_name.exe -install in the command line)


Other approach is Spring providing all the classes in an assembly (DLL) and the application generating one EXE. The app.config will refer the Object to be converted in a NT service. And Spring providing other exe, like Spring.Services.WindowsService.Installer.exe to provides the service installation.