Broker 10.15 | webMethods Broker Documentation | webMethods Broker Administration Java API Programmer’s Guide | Managing Broker Clients | Understanding BrokerAdminClients | Destroying a BrokerAdminClient
 
Destroying a BrokerAdminClient
The following example shows the use of the BrokerAdminClient.destroy method, which is inherited from the BrokerClient class. The client state and event queue for the BrokerAdminClient that is being destroyed will also be destroyed.
. . .
BrokerAdminClient c;
. . .
try {
c.destroy();
} catch (BrokerException ex) {
System.out.println("Error while destroying admin client\n"+ex);
return;
}
. . .