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: Petr V. <pe...@ya...> - 2012-12-04 19:57:36
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 it sounds really great (except some minor things). OCI_CNT_ENQUEUE is quite cryptic to me. I use OCI_CNT_AQMESSAGES in my code as it sounds more descriptive to me (if course it's just a minor stuff). The proposed OCI_EventGetDequeue() - I assume it should use only previously registered OCI_Dequeue by OCI_SubscriptionAddDequeue, right? I fully agree that contain OCI_Dequeue in OCI_event is much better than diplicated "queue name" and "consumer" etc. attributes. So what about implementation, please? Should I do it or do you want to do it yourself? (remember that you know OCI much better than me probably ;)). In the case I should do it: can I access the latest code? Or should I use the latest release? thanks, petr On 12/4/12 3:34 PM, vincent rogier wrote: > 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... <mailto:pe...@ya...>> wrote: > > real dequeueing will > > > > > -- > Vincent Rogier -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBAgAGBQJQvlWjAAoJEC8yRjM4uE2tAF0H/AxHvym+vSpo037JGF4Qqwqk eESHU0nKGp/z/oAmubYO/yUfnEI6FtsRuCUhMHJY0Xu2E4Da5DpZw6Yci3ldqh+C 68PsI47QzRATzTwxY3o0bIlRaXPZAIMl5qvR3g/EvOkDOmrDxs655h+CAi3ugNI6 4PUXvNproFWUXm/pCBNFMO0SViVgOJTZz7qB7Sr5323C1mtQ/vWP6AZvYs298DTd +rcZSrTwdR/S+KcH3tF5A3FQsQv8qU1xEswzNq0xz9gTZbQshoq5rBqS1zPk/F7a LB2nDvYeqW25H9cOKSHvASctjDvK+rsAgd0dl+FaEdbuU/D4xAt4IVkcZkcDNP8= =3s+g -----END PGP SIGNATURE----- |