dthansen
asked on
Same Windows Service - Multiple Instances
We have a service we built that collect records from remote MySQL databases and stores them in our SQL database. We normally only have 1 instance of the service per windows server but we have a scenario coming up wherein we will need multiple instances of the service, each with its own config file.
Is it possible to install the same service multiple times, in separate folders, so it has its own config file?
Thanks,
Dean
Is it possible to install the same service multiple times, in separate folders, so it has its own config file?
Thanks,
Dean
ASKER
I can put the different instances in separate folders, this would handle the config file issue. the question is then, how would I install the same service repeatedly but have them recognized by the OS as separate instances?
You can run the exact same app 100 times as a service as long as each service has a unique setup. The fact that you have each app in its own folder means your service will have a different path. This, in and of itself, should be unique enough to be fine. As an additional step, make sure each service has a unique name (service001, service002, etc). This way you can use console commands on them more easily.
Justin
Justin
ASKER
How would you install the service with names?
Dean
Dean
Dean,
What process are you using to create your first service?
Justin
What process are you using to create your first service?
Justin
ASKER
c:\WINDOWS\Microsoft.NET\F ramework\v 2.0.50727\ installuti l "c:\program files\DTH Software\DTH Billing\Service_CDRPolling .exe"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That method looks good to me!
Justin