![]() |
![]() |
e-docs > Tuxedo > Using the CORBA Notification Service > CORBA Notification Service API Reference |
Using the CORBA Notification Service
|
CosNotifyChannelAdmin::StructuredProxyPushSupplier:: connect_structured_push_consumer
Synopsis
Completes a subscription.
OMG IDL
void connect_structured_push_consumer (
in CosNotifyComm::StructuredPushConsumer push_consumer)
raises(CosEventChannelAdmin::AlreadyConnected,
CosEventChannelAdmin::TypeError );
Exceptions
Note: For exception definitions and corresponding minor codes, see "Exception Minor Codes" on page 2-66.
Description
Use this operation when subscribing. This operation is used in subscriber applications to subscribe to events. The push_consumer parameter identifies the subscriber's callback object.
Once the connect_structured_push_consumer has been called, the Notification Service will proceed to send events to the subscriber by invoking the callback object's push_structured_event operation. If the connect_structured_push_consumer has already been called, the AlreadyConnected exception is raised.
Note: You must call set_qos and add_filter before calling connect_structured_push_consumer.
Examples
Note: Code examples shown here are abbreviated. For complete code examples, see "Creating a Subscription" on page 4-16.
C++ code example:
subscription->connect_structured_push_consumer(
news_consumer.in()
);
Java code example:
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |