You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Xilai Dai (JIRA)" <ji...@apache.org> on 2011/07/30 01:34:10 UTC
[jira] [Created] (CXF-3697) clientCreated() and clientDestroyed()
not be called when implement ClientLifeCycleListener and register it with
ClientLifeCycleManager
clientCreated() and clientDestroyed() not be called when implement ClientLifeCycleListener and register it with ClientLifeCycleManager
--------------------------------------------------------------------------------------------------------------------------------------
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
ClientLifeCycleListener impl not called after register it with ClientLifeCycleManager.
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
[jira] [Updated] (CXF-3697) the clientDestroyed() of
ClientLifeCycleListener impl not be called when the service with
jaxws:client undeployed
Posted by "Xilai Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xilai Dai updated CXF-3697:
---------------------------
Attachment: patch.txt
> 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: patch.txt, 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
[jira] [Updated] (CXF-3697) the clientDestroyed() of
ClientLifeCycleListener impl not be called when the service with
jaxws:client undeployed
Posted by "Xilai Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xilai Dai updated CXF-3697:
---------------------------
Description:
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);
}
was:
the clientDestroyed() of ClientLifeCycleListener impl not be called when the service 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);
}
Summary: the clientDestroyed() of ClientLifeCycleListener impl not be called when the service with jaxws:client undeployed (was: the clientDestroyed() of ClientLifeCycleListener impl not be called when the service undeployed)
> 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
[jira] [Updated] (CXF-3697) the clientDestroyed() of
ClientLifeCycleListener impl not be called when the service undeployed
Posted by "Xilai Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xilai Dai updated CXF-3697:
---------------------------
Description:
the clientDestroyed() of ClientLifeCycleListener impl not be called when the service 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);
}
was:
ClientLifeCycleListener impl not called after register it with ClientLifeCycleManager.
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);
}
Summary: the clientDestroyed() of ClientLifeCycleListener impl not be called when the service undeployed (was: clientCreated() and clientDestroyed() not be called when implement ClientLifeCycleListener and register it with ClientLifeCycleManager)
> the clientDestroyed() of ClientLifeCycleListener impl not be called when the service 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
>
> the clientDestroyed() of ClientLifeCycleListener impl not be called when the service 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
[jira] [Updated] (CXF-3697) clientCreated() and clientDestroyed()
not be called when implement ClientLifeCycleListener and register it with
ClientLifeCycleManager
Posted by "Xilai Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xilai Dai updated CXF-3697:
---------------------------
Description:
ClientLifeCycleListener impl not called after register it with ClientLifeCycleManager.
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);
}
was:
ClientLifeCycleListener impl not called after register it with ClientLifeCycleManager.
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);
}
> clientCreated() and clientDestroyed() not be called when implement ClientLifeCycleListener and register it with ClientLifeCycleManager
> --------------------------------------------------------------------------------------------------------------------------------------
>
> 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
>
> ClientLifeCycleListener impl not called after register it with ClientLifeCycleManager.
> 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
[jira] [Resolved] (CXF-3697) the clientDestroyed() of
ClientLifeCycleListener impl not be called when the service with
jaxws:client undeployed
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-3697.
------------------------------
Resolution: Fixed
Fix Version/s: 2.4.2
2.3.6
> 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
> Assignee: Daniel Kulp
> Labels: ClientLifeCycleListener
> Fix For: 2.3.6, 2.4.2
>
> Attachments: patch.txt, 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
[jira] [Commented] (CXF-3697) the clientDestroyed() of
ClientLifeCycleListener impl not be called when the service with
jaxws:client undeployed
Posted by "Xilai Dai (JIRA)" <ji...@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
[jira] [Assigned] (CXF-3697) the clientDestroyed() of
ClientLifeCycleListener impl not be called when the service with
jaxws:client undeployed
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp reassigned CXF-3697:
--------------------------------
Assignee: Daniel Kulp
> 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
> Assignee: Daniel Kulp
> Labels: ClientLifeCycleListener
> Attachments: patch.txt, 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
[jira] [Updated] (CXF-3697) the clientDestroyed() of
ClientLifeCycleListener impl not be called when the service undeployed
Posted by "Xilai Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xilai Dai updated CXF-3697:
---------------------------
Attachment: testlifecycle.zip
testlifecycle project attached
> the clientDestroyed() of ClientLifeCycleListener impl not be called when the service 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 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
[jira] [Commented] (CXF-3697) the clientDestroyed() of
ClientLifeCycleListener impl not be called when the service undeployed
Posted by "Xilai Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073415#comment-13073415 ]
Xilai Dai commented on CXF-3697:
--------------------------------
tried to add these code to ClientImpl.java:
@Override
protected void finalize() throws Throwable {
destroy();
super.finalize();
}
but still not work!
> the clientDestroyed() of ClientLifeCycleListener impl not be called when the service 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
>
> the clientDestroyed() of ClientLifeCycleListener impl not be called when the service 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