如何使用JRuby创建Windows服务? [英] How to create Windows Service using JRuby?

查看:58
本文介绍了如何使用JRuby创建Windows服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我们可以使用Ruby中提供的win32-service gem创建Windows服务.我们如何在JRuby中创建Windows服务,是否有可以重用的Java特定方法?

I know we can create windows service using win32-service gem which is available in Ruby. How we can create a windows service in JRuby, is there any java-specific way which can be re-used ??

推荐答案

我不确定是否有特定于JRuby的东西,但是您应该能够使用基于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'. It's used by a lot of OSS projects.

有关更多信息,请检查示例集成.

For more information, check the sample integration.

这篇关于如何使用JRuby创建Windows服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆