I have a class 'BaseClass' that extends a java.lang.Thread but does not implement run() method. but it defines some common methods
SubClass
Now i have a subclass 'SubClass' that extends 'BaseClass' and provides a run() method implementation. In the main method in this class, start method is called is on object of the baseclass. In the run method, some process is done and then
thread is made to sleep for 10 seconds. After wakeup,it should redo the process (calling a stored proc )
SubClass2
There is another subclass 'SubClass2' that extends 'BaseClass' and provides a run() method implementation. In the main method in this class, start method is called is on object of the baseclass. In the run method, some process is done and then thread is made to sleep for 10 seconds. After wakeup,it should redo the process (calling a stored proc )
Now these two subclasses are run as a unix process , but the problem is these processes dies off automatically..
HOW ???