Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | Using the Callback Model | Specific Callback Functions
Specific Callback Functions
Using Specific Callbacks
Depending on the complexity of your design, you may find that a single, general callback function is all that your client application requires. More complicated designs may need to make use of specific callback functions.
A specific callback function is only invoked to process an event with a particular subscription identifier or event tag for a particular Broker client. You may register a specific callback function by calling either the awRegisterCallbackForSubId or awRegisterCallbackForTag.
Event tag fields are part of the request-reply model, described in Using Request-Reply.
If a received event matches the criteria for more than one callback, each callback function will be invoked to handle the event. The event will be automatically deleted after the last callback function returns.