将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 .

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值