OracleAlerter stops receiving alerts after couple of hours
Posted: Thu 02 Jun 2011 15:29
We have long-running web application which should always listen to database alerts. The code is following:
I reconnect alerter once a day, but after some period of time (2-3 hours) it stops receiving alerts. No event is raised (Error, WaitTimeout, Stopped). Active property returns true.
What can be the reason? Is there a way to have long-running listener which is guarantied to receive alerts?
Code: Select all
oracleAlerter = new OracleAlerter(connection, AlertName);
oracleAlerter.Alert += AlertHandler;
oracleAlerter.Stopped += OracleAlerterStopped;
oracleAlerter.Error += OracleAlerterError;
oracleAlerter.WaitTimeout += OracleAlerterWaitTimeout;
oracleAlerter.Timeout = int.MaxValue;
oracleAlerter.Interval = 0;
oracleAlerter.Start();
What can be the reason? Is there a way to have long-running listener which is guarantied to receive alerts?