Thanks for your reply.
That is close to where we are but not exactly.
We bounce the connection on the a last received alert. This resets the alert so we keep getting them.
Here is what we are trying to do. We would like for the system to try and fix it self first and then if it does not work, then notify someone. In practice, what we are trying to set up is:
1) When the last recvd alert goes off, bounce the connection and send an email to our regular email address (currently in place)
2) If you have bounced 3 or 4 times and no messages have come through, send a special email to our regular email address and send an email to our blackberry to wake someone up after hours.
The best Idea I can come up with is to use counters. Every time a message comes in reset the counter to 1 (more overhead than I like for every message). Every time the alert goes off, increment the counter. Also in the alert, check the counter, if over a threshold, send the special alert. I am concerned about resetting he counter for every msg. I am looking for a way around this.