Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Using the Callback Model | Specific Callback Objects
 
Specific Callback Objects
 
Using Specific Callbacks
Depending on the complexity of your design, you might find that a single, general callback object is all that your client application requires. More complicated designs might need to make use of specific callback objects.
A specific callback object is only used to process an event with a particular subscription identifier or event tag for a particular Broker client. You can register a specific callback object by calling either the BrokerClient.registerCallbackForSubId method, or BrokerClient.registerCallbackForTag method.
Event tag fields are part of the request-reply model, described in Using Request-Reply.
Note:
If a received event matches the criteria for more than one callback, each callback objects handleBrokerEvent method will be invoked to handle the event.