Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A51C7749F for ; Mon, 1 Aug 2011 07:35:56 +0000 (UTC) Received: (qmail 61855 invoked by uid 500); 1 Aug 2011 07:35:54 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 61460 invoked by uid 500); 1 Aug 2011 07:35:43 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 61426 invoked by uid 99); 1 Aug 2011 07:35:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2011 07:35:34 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2011 07:35:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0409397669 for ; Mon, 1 Aug 2011 07:35:10 +0000 (UTC) Date: Mon, 1 Aug 2011 07:35:10 +0000 (UTC) From: "Xilai Dai (JIRA)" To: issues@cxf.apache.org Message-ID: <1173000324.22358.1312184110013.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2108514861.20141.1311982450147.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CXF-3697) the clientDestroyed() of ClientLifeCycleListener impl not be called when the service with jaxws:client undeployed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-3697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073449#comment-13073449 ] Xilai Dai commented on CXF-3697: -------------------------------- clientDestroyed() triggered after add finalize() to org.apache.cxf.frontend.ClientProxy class. @Override protected void finalize() throws Throwable { client.destroy(); super.finalize(); } > the clientDestroyed() of ClientLifeCycleListener impl not be called when the service with jaxws:client undeployed > ----------------------------------------------------------------------------------------------------------------- > > Key: CXF-3697 > URL: https://issues.apache.org/jira/browse/CXF-3697 > Project: CXF > Issue Type: Bug > Components: Bus > Affects Versions: 2.4.1, 2.5 > Reporter: Xilai Dai > Labels: ClientLifeCycleListener > Attachments: testlifecycle.zip > > > the clientDestroyed() of ClientLifeCycleListener impl not be called when the service with jaxws:client undeployed. > sample code: > import org.apache.cxf.endpoint.ClientLifeCycleListener; > public class ClientListenerImpl implements ClientLifeCycleListener{ > public void clientCreated(Client client) { > System.out.println("clientCreated!"); > } > public void clientDestroyed(Client client) { > System.out.println("clientDestroyed!"); > } > } > ClientLifeCycleManager clcm = bus.getExtension(ClientLifeCycleManager.class); > if (null != clcm){ > ClientListenerImpl cltListener = new ClientListenerImpl(); > clcm.registerListener(cltListener); > } -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira