Java Web Service Client Timeout values not changing -
is there reason when set time out service call client doesnt override defualt values?
i have tried these no luck.
dictionarytransferservice service = new dictionarytransferservice(); dictionarytransfer port = service.getdictionarytransferport(); ((bindingprovider) port).getrequestcontext().put(stubext.property_client_timeout, 10 * 60 * 1000); ((bindingprovider) port).getrequestcontext().put("com.sun.xml.internal.ws.connect.timeout", 5 * 60 * 1000); ((bindingprovider) port).getrequestcontext().put("com.sun.xml.internal.ws.request.timeout", 10 * 60 * 1000); ((bindingprovider) port).getrequestcontext().put(bindingprovider.endpoint_address_property, endpointurl.tostring());
the constants these jax-ws ri settings changed @ 1 point, may need use these instead:
"com.sun.xml.ws.connect.timeout" "com.sun.xml.ws.request.timeout"
or better yet, use constants jaxwsproperties
class itself.
you might try these since you're running jboss:
org.jboss.ws.core.stubext.property_connection_timeout org.jboss.ws.core.stubext.property_receive_timeout
Comments
Post a Comment