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
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 –
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:
<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:
■
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
Appendix A • Automatically Restarting a Domain or Node Agent
225
Содержание Sun GlassFish Enterprise Server 2.1
Страница 12: ...12 ...
Страница 13: ...Figures FIGURE 1 1 Enterprise Server Instance 29 FIGURE 9 1 RoleMapping 105 13 ...
Страница 14: ...14 ...
Страница 18: ...18 ...
Страница 38: ...38 ...
Страница 62: ...62 ...
Страница 96: ...96 ...
Страница 126: ...126 ...
Страница 160: ...160 ...
Страница 214: ...214 ...
Страница 218: ...218 ...
Страница 230: ...230 ...