Broker 10.15 | webMethods Broker Documentation | webMethods Broker Administration Java API Programmer’s Guide | Managing Broker Territories | Using Territory Gateways | Creating and Destroying Gateways
 
Creating and Destroying Gateways
The BrokerAdminClient.createTerritoryGateway method allows you to obtain information about all the other Brokers in the territory to which the Broker client's Broker belongs.
You must provide the following arguments to this method:
*The name of the remote Broker that will act as the other endpoint of the gateway.
*The name of the host where the remote Broker is running.
*The name of the remote Broker's territory.
A territory gateway consists of two endpoints, so this function must be invoked for both endpoints before the gateway activation complete. Failure to activate both ends of the gateway will result in the gateway being in an incomplete state.
You can use the BrokerAdminClient.destroyTerritoryGateway method to destroy one endpoint of a territory gateway. You must provide the following arguments to this method:
*Name of the Broker to which this gateway is connected in the specified territory.
*The name of the territory whose gateway is to be destroyed.
A territory gateway consists of two endpoints, so this function must be invoked for both endpoints before the gateway destruction is complete.