com.sun.appserv.management.client

Contains classes and interfaces concerned with connectivity to the Appserver

Connecting to the Domain Admin Server (DAS)
AMX supports connection to the DAS only; it does not support connections to individual server instances. This makes it simple to interact with all servers, clusters, etc with a single connection.

To connect to the server, you will need to determine the following:

- hostname of the Domain Admin Server
- RMI administrative port of the Domain Admin Server (not the http port used by the admin GUI). The default is 8686.
- admin user
- admin password
- whether TLS/SSL is enabled or not

To determine the RMI admin port and whether TLS is enabled, you can always view domain.xml. Look for the jmx-connector element; it should look something like this:

<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">

In the above example, security is enabled, so useTLS must be true. The RMI administrative port is 8686.

Note that in an EE build, TLS is generally enabled, so useTLS must be true and the trustStore and truststorePassword are required. Connections will fail (or hang) if useTLS is not set appropriately. In a PE build, TLS is not enabled by default.
Once you have connected to the DAS via an AppserverConnectionSource call getDomainRoot() to get an instance of DomainRoot. All further interfaces may be obtained from DomainRoot, directly or indirectly.