继续搞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 .
将SunAS以Windows服务方式启动
最新推荐文章于 2023-11-13 17:49:17 发布
本文介绍了如何将SunAS 8和9配置为Windows服务的方法,并提供了官方文档链接。此外,还详细解释了如何通过设置-Xrs参数来防止SunAS在用户注销时关闭。
1404

被折叠的 条评论
为什么被折叠?



