`

将SunAS以Windows服务方式启动

阅读更多

继续搞Windows service。这个主题竟然耗费了俺3篇blog,呵呵,这回的是sun提供的将SunAS启动为Windows服务的方法:

SunAS 8
http://docs.sun.com/app/docs/doc/819-2646/6n4u0jrdf?l=en&a=view

SunAS 9
http://docs.sun.com/app/docs/doc/819-3677/abgbr?l=en&a=view
http://docs.sun.com/app/docs/doc/819-3671/ablwz?l=en&a=view
http://docs.sun.com/app/docs/doc/819-3671/ablwz?l=en&a=view

防止sunas在注销的时候被干掉,关键在于这个参数: -Xrs。原因如下(摘自sun):
By default, the Java VM catches signals from Windows that indicate that the operating system is shutting down, or that a user is logging out, and shuts itself down cleanly. This behavior causes the Application Server service to shut down when a user logs out of Windows. To prevent the service from shutting down when a user logs out, set the -Xrs Java VM option .

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics