Broker 10.15 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Load Balancing and Failover for Publish Operations | Broker Cluster Publisher Selection Notification | Registering the Selection Callback Object
 
Registering the Selection Callback Object
Use the BrokerClusterPublisher.registerSelectionCallback method to register a method to be called for selecting a Broker client from the Broker cluster publisher pool. You must implement both callback methods on this selection callback object; the first one intended for any publish/deliver operation involving a single event and the second one involving operation on multiple events.
This method accepts two parameters. The first parameter is the BrokerCPConnectionCallback, it is a derived object that implements your callback methods. The second parameter is a client_data object, which is used to pass any needed data to the callback method.
Note:
Any callback objects previously registered for a BrokerClient will be replaced by the one currently being registered.