axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lin Sun (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3018) ServiceDescriptionImpl.updateEndpointDescription() re-creates EndpointDescription objects when portQName is not specified
Date Mon, 30 Jul 2007 15:09:52 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516413
] 

Lin Sun commented on AXIS2-3018:
--------------------------------

Hi Roy,

>From the Java 5 API doc for this method - getPort(Class<T> serviceEndpointInterface)

The parameter serviceEndpointInterface specifies the service endpoint interface that is supported
by the returned proxy. In the implementation of this method, the JAX-WS runtime system takes
the responsibility of selecting a protocol binding (and a port) and configuring the proxy
accordingly. 

In the patch, if there are multiple endpoints for the service description, the axis2 implementation
would just return the first one it found (i.e descs[0]).   I think this is okay, and if the
user wants to specify which endpoint for the service description to use, the user can use
this method -- getPort(QName portName, Class<T> serviceEndpointInterface) instead.

Lin





> ServiceDescriptionImpl.updateEndpointDescription() re-creates EndpointDescription objects
when portQName is not specified
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3018
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3018
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Jarek Gawor
>            Assignee: Ann Robinson
>         Attachments: AXIS2-3018.patch
>
>
> ServiceDescriptionImpl.updateEndpointDescription() looks for existing EndpointDescription
objects only when portQName is specified. When portQName is not specified, the updateEndpointDescription()
function will create a new EndpointDescription each time it is called. This can lead to a
memory leak when the client configuration context is reused because somehow the EndpointDescription
objects remain retained (through AxisConfiguration). I can provide more info on that later.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message