[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]