![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
tibems_status tibemsSession_CreateSharedConsumer(tibemsSession session,const char* messageSelector );BY REFERENCE consumer,BY VALUE topic,BY REFERENCE sharedSubscriptionName,
If a shared non-durable subscription already exists with the same name and client identifier (if set), and the same topic and message selector has been specified, then this method creates a tibemsMsgConsumer on the existing subscription.A non-durable shared subscription is used by a client that needs to be able to share the work of receiving messages from a topic subscription amongst multiple consumers. A non-durable shared subscription may therefore have more than one consumer. Each message from the subscription will be delivered to only one of the consumers on that subscription. Such a subscription is not persisted and is deleted (together with any undelivered messages associated with it) when there are no consumers on it. The term consumer here means a tibemsMsgConsumer object in any client.There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId (which may be unset). Such subscriptions would be completely separate.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |