com.ibm.websphere.management

Class AdminClientFactory

  1. java.lang.Object
  2. extended bycom.ibm.websphere.management.AdminClientFactory

  1. public abstract class AdminClientFactory
  2. extends java.lang.Object
The AdminClientFactory allows you to create a concrete AdminClient based on the properties provided; keys for the properties are in the AdminClient class.

The AdminClient is the client-side interface to reach the server side JMX connector which in turn invokes the AdminService methods; supported AdminClient types are SOAP and RMI.

The required properties for SOAP/RMI based AdminClient are the host name and port number, which are defined as AdminClient.CONNECTOR_HOST and AdminClient.CONNECTOR_PORT. The port for SOAP connector is defined within the serverindex.xml of the server your client connects to. In a single server environment, the default value with the installation is "8880"; in a distributed environment, the port varies according to the specific configuration. The port for RMI connector is the same as the naming bootstrap port which is defined in the node serverindex.xml file. The default value in a single server environment is "2809".

Below is an example to create a SOAP based AdminClient:

        java.util.Properties props = new java.util.Properties();
        props.setProperty(AdminClient.CONNECTOR_TYPE, AdminClient.CONNECTOR_TYPE_SOAP);
        props.setProperty(AdminClient.CONNECTOR_HOST, "ahost.ibm.com");
        props.setProperty(AdminClient.CONNECTOR_PORT, "8880");
        AdminClient client = AdminClientFactory.createAdminClient(props);
   

Constructor Summary

Constructor and Description
AdminClientFactory()

Method Summary

Modifier and Type Method and Description
  1. static
  2. AdminClient
createAdminClient(java.util.Properties props)
Creates an AdminClient to communicate with a remote AdminService.
  1. static
  2. javax.security.auth.Subject
jaas_login(java.lang.String authTarget,java.lang.String loginSource,java.lang.String user,java.lang.String password,java.lang.String realm,java.lang.String krb5Ccache,java.lang.String krb5Config)
  1. static
  2. void
setKrbConfigProp(java.lang.String krb5Config)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

AdminClientFactory

  1. public AdminClientFactory()

Method Detail

createAdminClient

  1. public static AdminClient createAdminClient( java.util.Properties props)
  2. throws ConnectorException
Creates an AdminClient to communicate with a remote AdminService.
Parameters:
props - a set of properties to define the AdminClient
Returns:
an AdminClient connected to a remote AdminService
Throws:
InvalidAdminClientTypeException - if an unrecognized connector type is given
ConnectorException - if the AdminClient cannot be created for any other reason

jaas_login

  1. public static javax.security.auth.Subject jaas_login( java.lang.String authTarget,
  2. java.lang.String loginSource,
  3. java.lang.String user,
  4. java.lang.String password,
  5. java.lang.String realm,
  6. java.lang.String krb5Ccache,
  7. java.lang.String krb5Config)
  8. throws WSLoginFailedException
Throws:

setKrbConfigProp

  1. public static void setKrbConfigProp( java.lang.String krb5Config)