Skip to main content

Is it possible to use custom HTTP client with JAX-WS RI?

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2010-10-06

We've a requirement to monitor some Web service metrics like average response time (and many more) through JMX. The plan is to decorate the Apache HTTP Client to provide the monitoring feature. However, I don't see any way to replace the HttpURLConnection implementation used by JAX-WS RI with my own. The class of interest seems to be HttpClientTransport but even I subclass it, the framework doesn't provide a hook to plugin my custom class.
What happened to the open-closed principle? Any ideas are welcome.