I'm exploring the possibility of spawning a daemon
thread, that would act as a heartbeat listener,at the
Tomcat server startup.
The tomcat server ,on startup, spawns the following threads,among others.
- the main thread that listens on 8005 and awaits SHUTDOWN requests
- the JIOEndpoint Acceptor thread that listens on 8080 for incoming TCP/IP connections
- A processor thread that listens on 8009 for Apache webserver connections
- Other processor threads
I intend to spawn my heartbeat listener thread from the main thread.
Is there a way to achieve that by supplying my code and patching it up with the tomcat binaries? In other words, is it possible to write some sort of
plugin?
Or do I need to build the tomcat code along with the hearbeat listener code?
-thanks a lot for your comments.
[ July 08, 2008: Message edited by: Ajay Saxena ]
[ July 08, 2008: Message edited by: Ajay Saxena ]