Many recommend not to use sun
packages for various reasons. Detailed answers are provided here.
However I am using jaxws-rt.jar
which uses sun library.
I am wondering if I should jaxws-rt.jar
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.
Here is what I am trying to do (setting connection and request timeouts)
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);
Thanks