title: JAX-WS Client - Setting Connection Timeout and Request Timeout as a Command Line Option
body: <p>I am trying to set the Connection Timeout and Request Timeout properties on my JAX-WS Client, able to do this programmatically using : </p>
  
  <pre><code>Map&lt;String, Object&gt; reqContext = ((BindingProvider)port).getRequestContext();
  reqContext.put(BindingProviderProperties.CONNECT_TIMEOUT, conTimeout);
  reqContext.put(BindingProviderProperties.REQUEST_TIMEOUT, reqTimeout);
  </code></pre>
  
  <p>However, is there a way to set these properties as Command Line options (using the -D flag)?</p>
  
  <p>Tried -Dcom.sun.xml.ws.connect.timeout=900000 and -Dcom.sun.xml.ws.request.timeout=900000 but these don't seem to work.</p>