Broker 10.15 | webMethods Broker Documentation | webMethods Broker Administration Java API Programmer’s Guide | Managing Broker Clients | Broker Client Administration | Destroying Broker Clients
 
Destroying Broker Clients
A specific Broker client may be destroyed by invoking the BrokerAdminClient.destroyClientById method.
The following example shows how to destroy a Broker client by ID:
. . .
BrokerAdminClient c;
try {
/* Create a Broker admin client */
c = new BrokerAdminClient(broker_host, broker_name, null,
client_group, "My Broker Monitor",null);
/* Destroy a particular Broker client */
c.destroyClientById("A123");
. . .
} catch (BrokerException ex) {
System.out.println("Error while destroying BrokerClient\n"+ex);
return;
}
. . .