Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-521

The ExecuterService in the Asynchronous Dispatcher is not shut down cleanly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.2.RC1
    • 2.1.0.GA
    • jaxrs
    • None

    Description

      The ExecuterService in the AsynchronousDispatcher can not be shut down by the servlet container. It looks as if the stop() method of the AsynchronousDispatcher is not invoked by the ResteasyDeployment.

      The following snippet fixes the stop method of the ResteasyDeployment.class :

      ...
      
      public void stop()
      {
            if (asyncJobServiceEnabled)
            {
      	    ((AsynchronousDispatcher) dispatcher).stop();
            }
            ResteasyProviderFactory.clearInstanceIfEqual(threadLocalProviderFactory);
            ResteasyProviderFactory.clearInstanceIfEqual(providerFactory);
      }
      
      ...
      
      

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            stefan.gellenthin Stefan Gellenthin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: