can we use jaxws-rt.jar as runtime implementation though it includes sun libraries?
<p>Many recommend not to use <code>sun</code> packages for various reasons. Detailed answers are provided <a href="https://stackoverflow.com/questions/1834826/it-is-a-bad-practice-to-use-suns-proprietary-java-classes">here</a>.</p>

<p>However I am using <code>jaxws-rt.jar</code> which uses sun library.</p>

<p>I am wondering if I should <code>jaxws-rt.jar</code> or not. I am running in tomcat container and I do not want to include jaxws implementations of Jboss,GlassFish or any other application servers.</p>

<p>Here is what I am trying to do (setting connection and request timeouts)</p>

<pre><code>import com.sun.xml.internal.ws.client.BindingProviderProperties;
import javax.xml.ws.BindingProvider;

((BindingProvider)soapService).getRequestContext()
        .put(BindingProviderProperties.REQUEST_TIMEOUT,REQUEST_TIMEOUT_MILLI);
((BindingProvider)soapService).getRequestContext()
        .put(BindingProviderProperties.CONNECT_TIMEOUT,CONNECT_TIMEOUT_MILLI);
</code></pre>

<p>Thanks</p>