[英]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. 我有一个Java类(Java应用程序),并使用Java Service Wrapper将其作为Windows服务运行。
Service s1 is already running as window service in my system. 服务s1已在我的系统中作为窗口服务运行。 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.
只需给每个服务唯一的名称,例如mysevece1,myservice2等.BTW它甚至不是必需的。 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.
您可以为运行相同应用程序的不同服务(在本例中为您的Java应用程序)提供相同的名称。 But its advisable to give different names eg : XXXservice1 , XXXservice2 etc.
但建议给出不同的名称,例如:XXXservice1,XXXservice2等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.