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

The ExecuterService in the Asynchronous Dispatcher is not shut down cleanly

XMLWordPrintable

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

      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);
      }
      
      ...
      
      

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

                Created:
                Updated:
                Resolved: