[
https://issues.apache.org/jira/browse/CXF-8628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17834708#comment-17834708
]
Andriy Redko commented on CXF-8628:
-----------------------------------
The solution is to configure following JVM system properties:
-Dsun.net.client.defaultReadTimeout=60000
-Dsun.net.client.defaultConnectTimeout=30000
> Unable to set the timeout for JaxWsDynamicClientFactory download WSDL document
> ------------------------------------------------------------------------------
>
> Key: CXF-8628
> URL: https://issues.apache.org/jira/browse/CXF-8628
> Project: CXF
> Issue Type: Bug
> Environment: cxf-rt-frontend-simple-3.3.0.jar
> Reporter: winston chen
> Priority: Major
>
> {code:java}
> JaxWsDynamicClientFactory jaxWsDynamicClientFactory =
> JaxWsDynamicClientFactory.newInstance();
> Client client = jaxWsDynamicClientFactory.createClient(url);
> {code}
>
> When CXF creates clients through urls, there is no interface that allows us
> to set a timeout for downloading WSDL. If the WSDL file download is not
> completed for a long time, the current thread will always be running. It may
> cause the system to become unusable.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)