Preventing The Service From Shutting Down When A User Logs Out; Security For Automatic Restarts - Sun Microsystems GlassFish Enterprise Server 2.1 Administration Manual

Hide thumbs Also See for GlassFish Enterprise Server 2.1:
Table of Contents

Advertisement

Preventing the Service From Shutting Down When a
User Logs Out
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 Enterprise 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
(http://java.sun.com/j2se/1.3/docs/tooldocs/solaris/java.html#Xrs).
To set the -Xrs Java VM option, add the following line to the section of the
as-install\domains\domain-name\config\domain.xml file that defines Java VM options:
<jvm-options>-Xrs</jvm-options>
If the Enterprise Server service is running, stop and restart the service for your changes to
become effective.
Note –
file fails to prevent the service from shutting down. In this situation, add the option to the
as-install\lib\processLauncher.xml file as follows:
<process name="as-service-name">
...
<sysproperty key="-Xrs"/>
...

Security for Automatic Restarts

If you are using the cluster or enterprise profile, the administration passworda and master
password are required when automatically restarting Enterprise Server. If you are using the
Developer Profile, no
Handle the password and master password requirements for cluster and enterprise profiles in
one of the following ways:
Appendix A • Automatically Restarting a Domain or Node Agent
In some Windows 2003 Server installations, adding the -Xrs option to the domain.xml
On Microsoft Windows, configure the service to ask the user for the password.
1. In the Services Control Panel, double-click the service you created.
2. In the Properties window, click the Log On tab.
3. Check "Allow service to interact with desktop" to prompt for the required passwords
when starting the component.
You have to log in to see the prompts, and entries are not echoed back as you type them.
This method is the most secure way to use the services option, but user interaction is
required before the service becomes available.
Security for Automatic Restarts
Java VM option
225

Advertisement

Table of Contents
loading

Table of Contents