|
From: Alain G. <ga...@in...> - 2004-02-24 20:00:07
|
I am a j2ee programmer so please be kind and don't laugh
Using the wrapper i am trying to create a service that monitors the
content of a folder and perform an action when it changes.
I created a small set of class that performs the task throught a Timer.
here is a copy of the main:
public class WrapperTest {
public WrapperTest() throws ConfigurationException {
FolderMonitor fm = new FolderMonitor(new
File("/home/garem/workarea/rci/runtime/conf"));
Timer tm = new Timer();
System.out.println("running");
tm.scheduleAtFixedRate(fm, 0,600);
}
public static void main(String[] args) throws Exception {
WrapperTest wp = new WrapperTest();
}
}
as a stand alone i add a few line to the main to exit on <<enter>> using
System.in
now i've used the example given to start jboss and i get the following
error:
Startup failed: Timed out waiting for signal from JVM.
wrapper | JVM did not exit on request, terminated
if i remove the timer then it dies and restart and dies and restarts ....
What is it that i did not unserstand
Alain Gaeremynck
interstructure
|