Setting jax-ws client timeout

前端 未结 5 483
抹茶落季
抹茶落季 2020-12-29 10:24

I\'ve trouble setting jax-ws timeout. My code is:

@WebServiceClient(name = \"VoipDBJDBCService\", targetNamespace = \"http://db.server.voipmeter.jextreme.eu/         


        
5条回答
  •  庸人自扰
    2020-12-29 10:46

    If you are using a Sun JRE, you can set the following system properties for default network connect and read timeouts (in milliseconds). I haven't tried these with the JAX-WS client, but they ought work there as well:

    sun.net.client.defaultConnectTimeout
    sun.net.client.defaultReadTimeout
    

    Addition: I missed your last part of the question where you said that you are doing this in an applet. If the applet is running with default permissions, you are probably not allowed to set the system properties.

提交回复
热议问题