Re: [Orclib-users] subscriptions/callback for Oracle AQ
Open source C and C++ library for accessing Oracle Databases
Brought to you by:
vince_del_paris
From: vincent r. <vin...@ya...> - 2012-12-04 14:34:41
|
Hi Petr, Got the logic :) Thus, I would suggest another implementation : * Add flag OCI_CNT_ENQUEUE to OCI_SubscriptionRegister() documented as exclusive (cannot be combined with other ones) * Add value OCI_ENT_ENQUEUE to OCI_EventGetType() * Add Method OCI_EventGetDequeue() that returns an OCI_Dequeue object * Add method OCI_SubscriptionAddDequeue(OCI_Subscription *sub, OCI_Dequeue *dequeue) that will add an existing dequeues objects to an internal list of dequeue objects * When the internal callback is fired, it looks up the matching OCI_Dequeue object (queue name and current consumer or consumer list) and if found fires the event with the Dequeue property set Thus you can have directly the Dequeue object from the event :) What do you think ? On Tue, Dec 4, 2012 at 2:00 PM, Petr Vaněk <pe...@ya...> wrote: > real dequeueing will -- Vincent Rogier |