java - HTTP connection reuse in JAX-WS -


how enable http connection reuse when using jax-ws? when using axis2, set org.apache.axis2.transport.http.httpconstants.reuse_http_client property in client stub's options. equivalent jax-ws?

(i have verified creating new tcp connection each web service call. appears tear down previous connection before creating new tcp connection.)

as suffered issue, too, i've dug deeper it. seemed current (jdk 6) version not use http.keepalive property correctly though guide (see last post) says so, thereby not reusing http (tcp) connections multiple calls same client. then, found this bug report, confirming suspicions. according bug report you'll have update jax-ws ri (aka metro) implementation >= 2.1.2.

if update newest version (which 2.2.1 @ time of writing this) may have use endorsed standards override mechanism have jre running correct (new) version of libraries. because jax-ws ri 2.2 based on jax-ws 2.2 apis, 2.1 delivered current jdk/jre version.

cheers, daniel


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -