Re: Writing an app to monitor a Windows service
- From: "JohnFol" <OutlookExpress@xxxxxxxxxxxxxxxx>
- Date: Tue, 19 Apr 2005 15:04:31 GMT
Hi Crouchie, how did your windows service "publish" the data? Did it create
a log file to the event viewer / file system or did it "make it availabile"
via remoting?
I'll then presume the Systray app is configured to look at the server the
service is running on.
"Crouchie1998" <crouchie1998@xxxxxxxxxxx> wrote in message
news:OdfvE2ORFHA.3880@xxxxxxxxxxxxxxxxxxxxxxx
>I wrote an application like you described. The Windows application just sat
> in the System Tray & then the service would run under local system.
>
> What I looked into before writing this application is remoting & I found
> that was the best way to handle this.
>
> Make sure you code security rights for accessing the files for both the
> service & the Windows application
>
> I hope this has shed some light on what you need to do.
>
> One last thing: Do something to spoof your e-mail address, otherwise you
> will be SPAMMED forever more
>
> Crouchie1998
> BA (HONS) MCP MCSE
>
> "Chris Dunaway" <dunawayc@xxxxxxxxx> wrote in message
> news:1113920064.566293.206790@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> I am writing a Windows Service that reads and processes files on a set
>> schedule. I want to create a second app that can monitor the Windows
>> service. The Windows service will write trace messages at certain
>> points while executing. The monitoring app I want to write will be
>> very simple, just picking up these traces and displaying them to show
>> progress of the service.
>>
>> My question is what is the best method of communication between the
>> apps? The monitoring app may be run on the same machine or on the same
>> network as the service, but not, for example, over the internet.
>> Should I use named pipes? TCP client/server? Ideally, the service
>> would somehow be able to detect if there were any "listeners" and only
>> write the trace messages if any listeners were present.
>>
>> I was wondering what others have done in this regard and can you
>> suggest some code or topics I should look at? What would be the best
>> way to accomplish this?
>>
>> Thanks
>>
>
>
.
- References:
- Writing an app to monitor a Windows service
- From: Chris Dunaway
- Re: Writing an app to monitor a Windows service
- From: Crouchie1998
- Writing an app to monitor a Windows service
- Prev by Date: Re: pb with .selectedvalue of a combobox
- Next by Date: Re: Writing an app to monitor a Windows service
- Previous by thread: Re: Writing an app to monitor a Windows service
- Next by thread: Re: Writing an app to monitor a Windows service
- Index(es):
Relevant Pages
|