Determines whether the integration broker has subscribed to a
particular business object with
a particular verb.
Syntax
int isSubscribed(char * busObjName, char * verb);
Parameters
- busObjName [in]
- Is the name of a business object.
- verb [in]
- Is the active verb for the business object.
Return values
Returns 1 for True if the integration broker is interested in
receiving the specified business object and verb; otherwise,
returns 0 for False.
Notes
WebSphere InterChange Server |
If your business integration system uses InterChange Server, the
poll method can determine if any collaboration subscribes to the busObjName
business object with the specified verb. At initialization,
the connector framework
requests its subscription list
from the connector controller. At runtime, the poll method can use
isSubscribed() to query the connector framework to verify
that some collaboration subscribes to a particular business object.
The poll method can send the event only if some collaboration is
currently subscribed.
|
Other integration brokers |
If your business integration system uses WebSphere MQ Integrator Broker or WebSphere
Application Server, the connector framework assumes that the
integration broker is interested in all the connector's
supported business objects. If the application-specific component
uses the isSubscribed() method to query the connector
framework about subscriptions for a particular business object, the
method returns 0 (True) for every business object
that the connector supports.
|
Examples
SubscriptionHandlerCPP &theSubHandler =
GenGlobals::getTheSubHandler();
if (theSubHandler->isSubscribed(theObj->getName(), theObj->getVerb())) {
theSubHandler->gotApplEvent(theObj);
}
