I used to use the JAX-WS to generate client stubs. However, I learned recently that JAX-WS is not thread-safe and that Apache CXF is thread safe. I've read about it here. Creating a new instance of proxy each time it is needed is not an options because the proxies takes a long time to create. Also, I have no background with Apache CXF.
- Which do you think is better when making client stubs considering the thread safety issue? Is it Apache CXF or JAX-WS? Why is it better?
- What are the differences and similarities of the 2 that I should consider?
- Should I use Apache CXF and give in to its thread safe feature instead of using JAX-WS? This is considering that the volume of users will most likely be hundreds of thousands.
- Other option that was suggested to me is to use JAX-WS and create a pool of proxies instead. I'm somewhat hesistant with this solution given the possible volume of users. Is this a good solution?
- Is there any other way to make the proxies in JAX-WS thread safe?