Results 1 to 3 of 3

Thread: Service implementation comment

  1. #1
    stephan is offline Registered User
    Name: Stephan Stapel
    Organization: Stephan Stapel
    Project: BristolNG
    Join Date
    Oct 2003
    Location
    Essen, Germany
    Posts
    172

    Service implementation comment

    Hey there!

    Sorry to always speak about services... I'm still rather satisfied with your implementation but I have to issues/ suggestions:

    * can you please add a const member function which returns whether the application is being run as a service or not? This should be rather straight forward, all that should be necessary is a boolean flag that gets set in servicemain (or not in case the app isn't being run as a service).

    * an --appmode parameter could be introduced, as VNC does in order to specify that the application should be run as a (console) app. This could make things clearer as the app isn't being run with this parameter when being started from the scm!

    and for the sake of completeness what I suggested before:

    * the introduction of to const (abstract) member functions which return the service name respectively the service description so that one doesn't have to specify those values on the command line when using --install/ --uninstall parameters.

    regs,

    Stephan

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441

    Re: Service implementation comment

    Originally posted by stephan
    Hey there!

    Sorry to always speak about services... I'm still rather satisfied with your implementation but I have to issues/ suggestions:

    * can you please add a const member function which returns whether the application is being run as a service or not? This should be rather straight forward, all that should be necessary is a boolean flag that gets set in servicemain (or not in case the app isn't being run as a service).
    Sure, no problem.

    * an --appmode parameter could be introduced, as VNC does in order to specify that the application should be run as a (console) app. This could make things clearer as the app isn't being run with this parameter when being started from the scm!
    Sorry, I don't quite follow you. Can you elaborate?

    and for the sake of completeness what I suggested before:

    * the introduction of to const (abstract) member functions which return the service name respectively the service description so that one doesn't have to specify those values on the command line when using --install/ --uninstall parameters.
    Yes, we'll address this as well.

    Thanks,
    - Mark

  3. #3
    stephan is offline Registered User
    Name: Stephan Stapel
    Organization: Stephan Stapel
    Project: BristolNG
    Join Date
    Oct 2003
    Location
    Essen, Germany
    Posts
    172

    Re: Re: Service implementation comment

    Was: appmode
    Sorry, I don't quite follow you. Can you elaborate?
    Hmm. Yesterday I discovered in the registry that you're running a service with a '--service' parameter. This makes it easier to determine whether the application is being run manually or as a service. '--appmode' (as for VNC) is basically the opposite of '--service' :-))

    So I take back my suggestion for '--appmode' :-))

    regs,

    Stephan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ServantLocator implementation
    By DeepDiver in forum Help Center
    Replies: 10
    Last Post: 06-16-2005, 09:50 AM
  2. Freeze backup demo comment/correction
    By debrm in forum Bug Reports
    Replies: 2
    Last Post: 06-10-2005, 10:23 AM
  3. Error in service implementation
    By stephan in forum Bug Reports
    Replies: 3
    Last Post: 04-14-2004, 02:05 PM
  4. Questions on the service implementation in Ice 1.3
    By stephan in forum Help Center
    Replies: 7
    Last Post: 03-09-2004, 04:21 PM
  5. C# implementation issues?
    By vukicevic in forum Comments
    Replies: 5
    Last Post: 02-11-2004, 03:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •