View Full Version : Newbie question - Windows Service
rolandz
09-27-2006, 12:53 PM
Hi,
I am new to Spring.NET. However I found one very important advantage (among all others) - that is a windows service project... which actually doesn't produce anything.
So my question is whether it is currently broken and I should forget it or there is a way to build it, anyway...
TIA :)
Bruno Baia
09-27-2006, 11:32 PM
Hi,
You can find the Spring Windows Service in the latest nightly builds :
Example : examples\Spring\Spring.Examples.WindowsService
Source code : src\Spring\Spring.Services\(WindowsService)
Unfortunately, it's only available for .NET 1.1 but some users already migrate it to .NET 2.0
You can find a feedback from a user in this thread (http://forum.springframework.net/showthread.php?t=631).
Hope this helps,
Bruno
rolandz
09-29-2006, 12:31 PM
You can find the Spring Windows Service in the latest nightly builds :
Example : examples\Spring\Spring.Examples.WindowsService
Source code : src\Spring\Spring.Services\(WindowsService)
Unfortunately, it's only available for .NET 1.1 but some users already migrate it to .NET 2.0
You can find a feedback from a user in this thread (http://forum.springframework.net/showthread.php?t=631).
What I see there is an Echo class that is prepared to be a service. Then we need to install a service (using the linked code, for example) and the service must run.
What I understood from documentation is that I can have a central service. And then that service can provide me a component (i.e. as a web service). Do do it it has the capability to start another windows service which exposes objects. Then these objects are linked to proxies and become web services.
Did I misunderstand it somehow? Note that I was primarily excited with such idea. It introduces automatic startup of code required by the system...
TIA
Bruno Baia
10-03-2006, 08:13 AM
Hi,
I fixed a project reference (http://fisheye1.cenqua.com/changelog/springnet/Spring.Net?cs=MAIN:bbaia:20061002234634) in Windows Services solution, and now sample should work.
Continuous Integration Server is currently down, so you must wait for the next nightly build, or get the fix via CVS or fisheye (http://fisheye1.cenqua.com/browse/springnet/Spring.Net).
Windows Service should be moved as an Integration project.
Take a look to the "tutorials" directory in Spring.Examples.WindowsService for a example to setup a Web server (Cassini) as a Windows Service.
Hope this helps,
Bruno
rolandz
10-09-2006, 11:03 AM
I fixed a project reference (http://fisheye1.cenqua.com/changelog/springnet/Spring.Net?cs=MAIN:bbaia:20061002234634) in Windows Services solution, and now sample should work.
Continuous Integration Server is currently down, so you must wait for the next nightly build, or get the fix via CVS or fisheye (http://fisheye1.cenqua.com/browse/springnet/Spring.Net).
Windows Service should be moved as an Integration project.
Take a look to the "tutorials" directory in Spring.Examples.WindowsService for a example to setup a Web server (Cassini) as a Windows Service.
The project seems to be clear to me... but. I don't see a Spring.Services.WindowsService.Process.exe file which is required by the example (I suppose so because it is being called in the service installation batch).
In fact this is the only thing that is unclear - I cannot determine from which location it could be taken :( Please provide me any hint...
TIA
Bruno Baia
10-09-2006, 01:38 PM
Hi,
I've got the same problem :
There is more than one executable project in the 'Spring.Examples.WindowsService' solution, so you need to manually build them (Installer, Process and the example project) or build the solution several times to be sure projects have all been build.
-Bruno
rolandz
10-09-2006, 02:53 PM
I've got the same problem :
There is more than one executable project in the 'Spring.Examples.WindowsService' solution, so you need to manually build them (Installer, Process and the example project) or build the solution several times to be sure projects have all been build.
But I have a bit different problem - I don't see the Spring.Services.WindowsService.Process.exe file anywhere after a successfull build. Also it is not being present in the VS solution (neither VS 2003 nor VS 2005).
Then what should I build? /Prefer NAnt targets/ Please help...
Bruno Baia
10-09-2006, 04:05 PM
When using the 'Spring.Example.WindowsService' solution, it should generate everything into the 'ServiceFakedInstDir' directory :
'Spring.Net\examples\Spring\Spring.Examples.Window sService\ServiceFakedInstDir'
-Bruno
rolandz
10-09-2006, 08:16 PM
When using the 'Spring.Example.WindowsService' solution, it should generate everything into the 'ServiceFakedInstDir' directory :
'Spring.Net\examples\Spring\Spring.Examples.Window sService\ServiceFakedInstDir'
But the solution does not build on my computers (neither home nor office...). Furthermore, it looks like there are problems with references within the
subcomponents in the mentioned solution -- does it require the Spring.Core or any other assemblies to be put in the GAC?
Anyway - at least Spring.Threading does not build (in this solution). The reason is that the ISet interface is unknown (among other errors). This interface has been defined in the Spring.Core and after I changed the reference (I've put completely new reference to the project Spring.Core) the project Spring.Threading builds...
Further lookup shows me that it looks like in other projects there are similar issues... Is the solution really valid? Or maybe I am just doing sbth wrong?
Thanks for your patience. I am completely newbie to Spring but I find it that powerfull that I WILL handle all these problems :)
Bruno Baia
10-10-2006, 07:03 AM
Hi,
I just made a update for the solution/projects used by the WindowsService example.
I also moved it to .NET 2.0.
Our Continuous Integration is down atm, so I don't know when you'll be able to donwload the latest build.
You still can get it from CVS if you want.
-Bruno
rolandz
10-11-2006, 07:54 AM
I just made a update for the solution/projects used by the WindowsService example.
I also moved it to .NET 2.0.
Our Continuous Integration is down atm, so I don't know when you'll be able to donwload the latest build.
You still can get it from CVS if you want.
Finally it works :) Thanx for your assistance and patience. I like this architecture.
ruperth
01-08-2007, 03:35 PM
Hi,
I just made a update for the solution/projects used by the WindowsService example.
I also moved it to .NET 2.0.
Our Continuous Integration is down atm, so I don't know when you'll be able to donwload the latest build.
You still can get it from CVS if you want.
-Bruno
Note: The Windows Service example solution appears to have disappeared from later builds of the Spring Framework. But i downloaded build 20061021-2204 of the nightly snapshots ( a date soon after the quoted post was made) and the windows service example seems to be there, and it builds ok! So lets just see if it works ... fingers crossed :)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.