Article View: borland.public.cppbuilder.nativeapi
Article #7901Re: Controlling Windows service
From: Deepak Mishra
Date: Tue, 14 Dec 2004 11:34
Date: Tue, 14 Dec 2004 11:34
44 lines
3072 bytes
3072 bytes
>> 3)There is a requirement for a module(running on the machine hosting the >> database server)in the application which needs to ftp to and from the >> machine hosting the dataabse server > >If the module is in an application that is running on the same machine as >the database servicer, then why are you using FTP to move the files around? >Why not just call CopyFile/MoveFile() instead? Your design is very >confusing to me. Some files will be created on the Server machine depending on the transactions happening in the database. These files needed to be FTP'd to some "remote server". The service will continuously poll at some specefic directories on our database server machine, to do this FTP to some remote server. >> a)The background process should get started whwnever the first >> client apllication connects with the database server. > >Why does the process require a user login at all? Since it is a service, it >is already running when the machine is booted up. Yes, the Service will get started as soon as the OS satrts. But users want some control over the service from within the client application. >> b)Each client application will have a button through which it can >> stop the service if it is running. >> >> c)There will be another button in client application which can start >> the service if it is stopped. > >If the clients are running on different machines than the service, then they >will not be able to start/stop the service directly. > >> d)As soon as the last coonected client application gets disconnected >> with the database server, Service should get automatically stopped. > >I think your understanding of "service" may be misplaced. Please explain >what you THINK a service really is. Your explanation does not sound like a proper service model. Sir, I do understand the purpose and working of services. Its only the requirements from end-users because of which we have to give the users the required control over the service. regards, Deepak
Technical Details
Message-ID:
<41becfcf$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41bd5410$1@newsgroups.borland.com> <41bd87dc$1@newsgroups.borland.com> <41bd993f$1@newsgroups.borland.com> <41bdec9b$3@newsgroups.borland.com> <41beb248$1@newsgroups.borland.com> <41bec2e7$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2580bf3649196f02 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Deepak Mishra" <deepak.dmishra@gmail.com> Sender: "Deepak Mishra" <deepak.dmishra@gmail.com> Reply-To: "Deepak Mishra" <deepak.dmishra@gmail.com> Subject: Re: Controlling Windows service Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 61.246.193.66 References: <41bd5410$1@newsgroups.borland.com> <41bd87dc$1@newsgroups.borland.com> <41bd993f$1@newsgroups.borland.com> <41bdec9b$3@newsgroups.borland.com> <41beb248$1@newsgroups.borland.com> <41bec2e7$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <41becfcf$1@newsgroups.borland.com> Date: 14 Dec 2004 03:34:39 -0800 X-Trace: newsgroups.borland.com 1103024079 207.105.83.66 (14 Dec 2004 03:34:39 -0800) Lines: 46 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail