commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hontvari Jozsef (JIRA)" <>
Subject [jira] Commented: (DAEMON-97) service stops after main method return on JDK 1.6u1
Date Thu, 11 Feb 2010 17:32:33 GMT


Hontvari Jozsef commented on DAEMON-97:

The Java specification says that the JRE will exit when there is no running non-daemon thread.
It is not only the specification, but all software I have seen worked this way, even GUI apps.
They create their Thread descendant or Runnable, and start it. Nothing else happens in main,
it just returns. I don't see the benefit of having a main function and thread which calls
a blocking method when the program starts and does nothing, just waits, until the program
Anyway, considering that nobody else had been interested in this issue for three years, it
does not worth your time.

> service stops after main method return on JDK 1.6u1 
> ----------------------------------------------------
>                 Key: DAEMON-97
>                 URL:
>             Project: Commons Daemon
>          Issue Type: Bug
>    Affects Versions: 1.0.1
>         Environment: Windows 2003, Sun JDK1.6u1
>            Reporter: Hontvari Jozsef
>            Priority: Critical
> The installed service immediately stops in this environment when the main method returns
even if there is a non-daemon thread (created and started by the main method). The same code
runs well on JavaService.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message