How to use CXF client in thread safe way
问题 I have created the client stub for below service using apache-cxf 's wsdl2java command. http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL Then I invoke the getWeatherInformation() method as below. Weather weatherService = new Weather(); WeatherSoap weatherSoap = weatherService.getWeatherSoap(); ArrayOfWeatherDescription result = weatherSoap.getWeatherInformation(); I have read that cxf clients are thread safe. But I have a doubt whether it is safe to use the same WeatherSoap instance accross