The
security-enabled
flag for the JMX Connector is
false
. If you are running the cluster or
enterprise profile, or if you have turned on security for the JMX Connector in the developer
profile, this flag is set to
true
.
<!- – The JSR 160
"
system-jmx-connector
"
– –>
<jmx-connector accept-all=
"
false
"
address=
"
0.0.0.0
"
auth-realm-name=
"
admin-realm
"
enabled=
"
true
"
name=
"
system
"
port=
"
8686
"
protocol=
"
rmi_jrmp
"
security-enabled=
"
true
"
/>
...
</jmx-connector>
<!- – The JSR 160
"
system-jmx-connector
"
– –>
Prerequisites for Connecting JConsole to Application
Server
The JConsole setup has two parts: a server end and a client end. For this example, the Enterprise
Server domain is installed on a machine called
appserver.sun.com
, which is a powerful Solaris
server. This is the server end.
The client end also has an installation of Enterprise Server. Let us assume that the client end is a
Windows machine with Java SE 6.0 and Enterprise Server installed.
Note –
The Enterprise Server installation is needed on the client end only when your Enterprise
Server domain has security enabled on the remote machine (the default for cluster and
enterprise profiles). If you just want to administer an Enterprise Server developer profile
domain on the Solaris machine above, you do not need the Enterprise Server installation on this
client machine.
If the server and client ends are on the same machine, you can use
localhost
to specify the host
name.
▼
Connecting JConsole to Application Server
This procedure describes connecting JConsole to Enterprise Server without security enabled on
the JMX Connector. By default, security is not enabled on Enterprise Server for the developer
profile.
Start the domain on
appserver.sun.com
.
Start JConsole by running
JDK_HOME
/bin/jconsole
.
1
2
Using JConsole
Chapter 18 • Monitoring Components and Services
211
Содержание 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 ...