I have an (external) factory class which lazy-initializes a CXF client in a non thread-safe way.
(It is possible that it instantiates the client two or more times if called too quickly.)
The class has a protected method which does the initialization. It calls the method on the first request.
Should I create my own client bypassing the factory?
Somehow make the class initialize the client by sending one request on a single thread / call the protected method?
Or is it safe to ignore this as it happens on the first few requests?