Broker 10.15 | webMethods Broker Documentation | webMethods Broker Administration Java API Programmer’s Guide | Managing Broker Clients | Understanding BrokerAdminClients | Disconnecting a BrokerAdminClient
 
Disconnecting a BrokerAdminClient
You can disconnect your BrokerAdminClient by calling the disconnect method inherited from the BrokerClient class. If the Broker client's life cycle is destroy-on-disconnect, the client state and event queue storage will be destroyed by the Broker. If the Broker client's life cycle is explicit-destroy, the client state and event queue storage will be preserved by the Broker until the Broker client reconnects.
The following example illustrates how to disconnect a BrokerAdminClient:
. . .
BrokerAdminClient c;
. . .
try {
c.disconnect();
} catch (BrokerException ex) {
System.out.println("Error while disconnecting the admin client\n"+ex);
return;
}
. . .