简体   繁体   English

如何使用JRuby创建Windows服务?

[英]How to create Windows Service using JRuby?

I know we can create windows service using win32-service gem which is available in Ruby. 我知道我们可以使用Ruby中提供的win32-service gem创建Windows服务。 How we can create a windows service in JRuby, is there any java-specific way which can be re-used ?? 我们如何在JRuby中创建Windows服务,是否有可以重用的Java特定方式?

I'm not sure if there's anything JRuby specific, but you should be able to use Java based service wrappers like ' Java Service Wrapper '. 我不确定是否有特定于JRuby的东西,但是您应该能够使用基于Java的服务包装程序,例如“ Java Service Wrapper ”。 It's used by a lot of OSS projects. 许多OSS项目都使用它。

For more information, check the sample integration . 有关更多信息,请检查样本集成

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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