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

Daniel Kulp resolved CXF-3700.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.2
         Assignee: Daniel Kulp


Thanks for the analysis.

I went with a slightly simpler fix of just recording if the ServerImpl is 
stopped or not.  I don't want to null out anything as you should be able to 
stop a server and then restart it so I wanted the mgr's to be kept around.   
This fix should fix the issue.


> the stopServer() method in ServerLifeCycleListener has been invoked twice 
> when a service stopped
> ------------------------------------------------------------------------------------------------
>
>                 Key: CXF-3700
>                 URL: https://issues.apache.org/jira/browse/CXF-3700
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1, 2.5
>            Reporter: Xilai Dai
>            Assignee: Daniel Kulp
>              Labels: ServerLifeCycleListener
>             Fix For: 2.4.2
>
>         Attachments: testlifecycle.zip
>
>
> when implemented a ServerLifeCycleListener and register it to Bus, the 
> stopServer() method in ServerLifeCycleListener will be invoked twice when 
> stopped service.
> public class ServiceListenerImpl implements ServerLifeCycleListener{
>  public void stopServer(Server server) {
>    ......
>  }
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to