02-03-2009 01:48 PM - edited 03-18-2019 10:25 PM
This is happening on Unity 5.0.1:
I'm using Unity's Stored Procedure API to enable/disable notification devices by invoking calls to sp_ModifyNotificationDevice. The calls appear to go through just fine. I can verify via web/sa that the changes sent are in place. The problem is that notifications are never received on the device.
If I make the same exact change through web/sa then notifications go through. Also if I use web/sa and examine a notification device that was configured via the API, make a minor change (such as bump up the retry attempts) it will then start working.
Is there some other procedure call that needs to happen to make this work?
02-03-2009 02:19 PM
The notifier service doesn't get triggered to pick up updates from the DB automatically in Unity (they do in Connection). The SA is doing it's work through the COM based DOH interface which takes care of forcing the notifier to reload data for the device you just updated - when making the change through the DB directly you either have to snag a handle to the gateway interface and kick the notifier to reload that device (black belt stuff) or you have to restart the notifier service itself. Restarting the service is pretty heavy if you're going to be making this change often. But if it's a bulk operation that you do and when you're done you can cycle the service it may be an option.
02-04-2009 08:46 AM
How might one go about "snagging a handle to the gateway interface"?
02-04-2009 11:54 AM
ping me off line (lindborg at cisco dot com) and I'll give you the secret handshake.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide