|
From: Anakreon M. <am...@er...> - 2003-08-06 07:22:59
|
Leif Mortenson wrote: > Anakreon, > The Wrapper is detecting that there are no non-daemon threads still > running > and deciding that your application is ready to exit. This is exactly > how Java > works when run without the Wrapper. When run without the Wrapper, the JVM > will exit as soon as the last non-daemon thread has completed. > > The Wrapper has to do its own thread counting to emulate the way Java > normally works because the Wrapper has its own non-daemon thread running. > > When your WrapperListener.start method returns are you sure that you > have > any other threads running? If so verify that they do not have their > daemon flag > set. > > You should be getting the same behavior whether you are running as a > service or as a console app. If you can't figure it out, let me know > what the error > is that you are getting when running as a service. > > Cheers, > Leif Thanks Leif. I had started a thread but was a deamon. My fault. |