Security for automatic restarts – Sun Microsystems GLASSFISH ENTERPRISE 820433510 User Manual
Page 225

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
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:
If the Enterprise Server service is running, stop and restart the service for your changes to
become effective.
Note –
In some Windows 2003 Server installations, adding the -Xrs option to the domain.xml
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:
"as-service-name"> ... "-Xrs"/> ... Security for Automatic Restarts If you are using the cluster or enterprise profile, the administration passworda and master Handle the password and master password requirements for cluster and enterprise profiles in ■ 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. Security for Automatic Restarts Appendix A • Automatically Restarting a Domain or Node Agent 225
password are required when automatically restarting Enterprise Server. If you are using the
Developer Profile, no
one of the following ways:
This method is the most secure way to use the services option, but user interaction is
required before the service becomes available.