Sun Microsystems 820433510 Server User Manual


 
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
Java VM option
(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 le that denes 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 eective.
Note In some Windows 2003 Server installations, adding the -Xrs option to the domain.xml
le fails to prevent the service from shutting down. In this situation, add the option to the
as-install\lib\processLauncher.xml le as follows:
<process name="as-service-name">
...
<sysproperty key="-Xrs"/>
...
Security for Automatic Restarts
If you are using the cluster or enterprise prole, the administration passworda and master
password are required when automatically restarting Enterprise Server. If you are using the
Developer Prole, no
Handle the password and master password requirements for cluster and enterprise proles in
one of the following ways:
On Microsoft Windows, congure 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 forAutomaticRestarts
AppendixA • AutomaticallyRestartingaDomain orNodeAgent 225