Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application monitor and notification 1

Status
Not open for further replies.

jcale4

Programmer
Aug 31, 2004
63
0
0
US
Hello,

I have a java listener application that runs on a windows 2003 server. It listens for raw ASCII data streams on a specified port and transforms and feeds the data into a DB2 database. Works great!. It is CRITICAL that this data is fed consistently throughout the day. If the listener goes down, the data is completely LOST. I need to develop an application (or some other method) to notify me ASAP when the listener application goes down for ANY reason. Anyone have any ideas?

Thank you!!!
 
Nothing to do with java, but what about a process that pings the port from time to time?

Of course, this is and endless solution because, "who watchs the watcher?"

Cheers,
Dian
 
The best way as far as I can see is to write the application in C, not Java. This way, you can attach signal handlers (for OS level signals such as SIGSEGV, SIGTERM etc) so that if your application ever dies, the signal handlers will restart it.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Not so familiar with C, does java have any capabilities like this?
 
Can you modify the listener?
In which circumstances might it go down?
How will that happen? Throwing an exception?

If you may modify the listener, this could send a signal every n Minutes, which means "I'm alive".
If you can't modify the listener, perhaps you may start it from a wrapper-Application, which informs you, if the listener throws an exception.

Another idea is to ask the database on a regular basis, if there where updates on the table during the last interval, and if not, assume the listener is down, and notify you.


seeking a job as java-programmer in Berlin:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top