?
Solved

Comms between Service <=> Applet

Posted on 2002-05-25
3
Medium Priority
?
300 Views
Last Modified: 2011-09-20
Can anyone tell me the 'preferred' technique for communicating between an (Win2K) service, and a desktop applet.

An example being a formless service running as automatic, and a user-initiated applet e.g. control panel that manages parameters inthe running service.

I can think of a few ways to do it, but I expect there is a fairly 'standard' method that I can use to be politically correct... !

TIA
mc
0
Comment
Question by:mcoop
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
thegroup earned 150 total points
ID: 7045028
In my experience the best way is saving parameters into registry and restarting the service to load the new parameters.

An application could start, stop and pause a service at any time.

The sequence I use is this:

Configure Parameters
Save parameters into registry
Stop Service
Start Service

My services load all parameters when start, but is perfectly possible to load them on pause-resume.
0
 
LVL 4

Author Comment

by:mcoop
ID: 7045559
ok -

I can do this but I'll have to watch the time, as my service is handling socket traffic and realtime video encoding to a http: stream and to a file (which is partitioned on the second -every 30 minutes).

As long as I have no other actions pending I could do as suggested...  or defer until the next available opportunity (say 2 secs later).

Thanks for the idea.  I'll leave the Q open for a day or two - then award the points.

Cheers
0
 
LVL 4

Author Comment

by:mcoop
ID: 7052383
no other takers!
I'll have to think about this - as the time critical nature of my app is the only obstacle to stop/start

Cheers
MC
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question