[ 
http://jira.codehaus.org/browse/MEXEC-18?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_87007
 ] 

David Smiley commented on MEXEC-18:
-----------------------------------

What you say suggests you *do* have control over the code for these threads, 
unless by "hacking" you implied code you can't/shouldn't touch.  If you do have 
control, then commit the code you "hacked" in, since responding to interruption 
by quitting is the recommended behavior for a thread.  If you can't go that 
route, then you'll have to settle for setting daemonThreadJointTimeout to 
something satisfactory for you (as you discovered).  I don't think you 
necessarily need to stop those threads, but only you can know that.  If the 
code that isn't responding correctly to interruption is not DigitalRiver's, can 
you point out the project please?

I agree with you that daemonThreadJoinTimeout should be non-zero by default.  
See MEXEC-15 for more of my thoughts on this matter, and you can continue that 
discussion there if you like.

By the way, enabling debugging should show interesting output for 
troubleshooting exec:java.

> un-stopped damean threads prevent plugin shutdown
> -------------------------------------------------
>
>                 Key: MEXEC-18
>                 URL: http://jira.codehaus.org/browse/MEXEC-18
>             Project: Mojo Exec Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: using latest snapshot
>            Reporter: Ryan Sonnek
>
> my application is using daemon threads, and the exec:java plugin just hangs.
> {noformat}
> [DEBUG] interrupting thread Thread[Lazy 
> Clock,1,com.digitalriver.schedule.JobRunner]
> [DEBUG] joining on thread Thread[Lazy 
> Clock,1,com.digitalriver.schedule.JobRunner]
> {noformat}
> since these are daemon threads, the exec:java plugin should try to 
> interrupt/join, but exit cleanly without worrrying about them.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to