问题
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 ??
回答1:
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.
来源:https://stackoverflow.com/questions/4013970/how-to-create-windows-service-using-jruby