Hello All,
I have looked into this and have found that often the web service proxy is cached and reused.
The important point is whether the web service proxy is
thread safe or not. The JAX-WS implementation that is included in the JDK starting with
Java 6 has a proxy that is not thread safe. The web service proxy in CXF is thread safe.
Since I have written my code using the JAX-WS implementation in JDK (java 8), I plan to create a small pool of proxies (2-3 objects).
Any comments to this method are welcome.
-Ravi