简体   繁体   中英

How can I run multiple instances of the same window service(java) in single machine

I have a Java class (Java Application) and am running it as Windows service using the Java Service Wrapper.

Service s1 is already running as window service in my system. Can i install the same service and make it to run as duplicate. If yes, please suggest me a way to run a duplicate service.

Yes, you can. Just give each service unique name, eg mysevece1, myservice2 etc. BTW it is even not required. It is for your convenience only.

Just the way you created your original service. You can give different services running same application(in this case your java application) same names also. But its advisable to give different names eg : XXXservice1 , XXXservice2 etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM