activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMQ-4026) Refactor logic to shutdown thread pools using a single API to ensure better shutdown and offer logging et all
Date Thu, 06 Sep 2012 17:53:07 GMT

     [ https://issues.apache.org/jira/browse/AMQ-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved AMQ-4026.
------------------------------

    Resolution: Fixed

There is a ThreadPoolUtils with shutdown methods that is being used now. 

The unit tests is currently tie to using the non-graceful shutdown of the thread pools. 

The pools is being shutdown just as they were already, but now uses the ThreadPoolUtils for
that, so we have a central API code for handling this.
                
> Refactor logic to shutdown thread pools using a single API to ensure better shutdown
and offer logging et all
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-4026
>                 URL: https://issues.apache.org/jira/browse/AMQ-4026
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 5.7.0
>
>
> In Apache Camel we have a centralized API for thread pools. This allows us to track this
in Camel, and ensure thread pools is enlisted in JMX, and also unregistered again. As well
having logs when thread pools is created / shutdown etc. Also better logic for shutdown graceful
and then fallback to be aggressive etc. And to add a thread factory, that offers a naming
pattern style, so end users can customize thread naming etc.
> In activemq-core, there is pieces of logic for that. We should tidy this up, and especially
ensure shutdown is happening consistent and more graceful, etc.
> This can help make it possible to do as Camel to also enlist thread pools in JMX. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message