Controlling Apache Service on Windows platform through Java

Hi,

I am running a web application with apache.If sometime it goes down usually by restarting Apache,problem get solved.Now i want to automate it,where my appliaction will check page faults,CPU Usuage and then based on certain conditions it will stop and then Start Apache.

Now i dont know how to do it.i am just wondering whether RMI can help me.?please help me if anybody has done it before or has an idea.

Thanks in advance.

Akash

[464 byte] By [Akash5495a] at [2007-11-26 19:34:29]
# 1
I think tomcat has some ant task defined for the same. May be you can try that
jaaya at 2007-7-9 22:08:18 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...