Article View: borland.public.cppbuilder.nativeapi
Article #7898Re: Controlling Windows service
From: Remy Lebeau (TeamB)
Date: Tue, 14 Dec 2004 10:40
Date: Tue, 14 Dec 2004 10:40
37 lines
2630 bytes
2630 bytes
"Deepak Mishra" <deepak.dmishra@gmail.com> wrote in message news:41beb248$1@newsgroups.borland.com... > 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. > 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. > 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. Gambit
Technical Details
Message-ID:
<41bec2e7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!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>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2580bf3649196f02 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi 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> Subject: Re: Controlling Windows service Date: Tue, 14 Dec 2004 02:40:03 -0800 Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41bec2e7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1103020775 68.69.17.41 (14 Dec 2004 02:39:35 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail