Inthe Connect to Agent tab of JConsole, enter user name,password, host name and port (8686,
bydefault).
Theuser name refers to the administration user name and password refers to the
administrationpassword of the domain.
ClickConnect.
Inthe JConsole window you will see all your MBeans, VM information etc., in various tabs.
Connecting JConsoleSecurely to Application Ser ver
Thisprocedure describes how to connect JConsole to Enterprise Server with security enabled
onthe JMX Connector. By default, security is enabled on Enterprise Server cluster or enterprise
proles.Use this procedure if you have security enabled on the developer prole's JMX
Connector.
InstallEnterprise Server on the client machine (where JConsole is installed).
Theonly reason you need this is to let JConsole know where the server certicate of the Domain
AdministrationServer that you trust is located. To obtain that certicate, invoke at least one
remoteasadmin command and to do that, you need the local installation of Enterprise Server.
Startthe Enterprise Server on appserver.sun.com.
Sincethis is a cluster or enterprise domain, the system JMX Connector server is secure. To
enablesecurity on the developer prole JMX Connector, see the Admin Console online help.
Fromthe local Enterprise Server installation, run install-dir\bin\asadmin list --user admin
--secure=true --host appserver.sun.com --port 4848 (where 4848 is the server's
administrationport).
Thoughasadmin list command is chosen for this example, you can run any remote asadmin
command.You are prompted to accept the certicate sent by the DAS of appserver.sun.com.
Pressyto accept the certicate sent by the DASon appserver.sun.com .
Theserver's certicate is stored in a le called .asadmintruststore in your home directory on
theclient machine.
Note– This step is not required if your server machine and client machine is the same. That is, if
youare running JConsole also on appserver.sun.com.
LetJConsole know the trust store location by using the followingJConsole command:
JDK-dir\bin\jconsole.exe -J-Djavax.net.ssl.trustStore="C:\Documents and
Settings\user\.asadmintruststore"
3
4
1
2
3
4
5
UsingJConsole
SunGlassFishEnterprise Ser ver2.1 Administration Guide • December 2008212