In my case I have three methods of three different class. First one is Run the Services continuously by running jar file, Second one is check if any services is down, if not down let it be and if any of the services is down run the service by running jar file and third one is insert the log in database as well as in text file.
I have done this but its not functioning properly.
Thread thread1 = new Thread() {
public void run() {
Runjar.Runservices();
}
};
Thread thread2 = new Thread() {
public void run() {
ControllerApplication.linuxCmd();
}
};
Thread thread3 = new Thread() {
public void run() {
Utils.insertLog();
}
};
thread1.start();
thread2.start();
thread3.start();
Ho