Just make sur that everything is thread safe. I did the same as you while using Axis(for same reason) but some method weren't thread safe... So I have finally put it in a thread variable. Best Regards, Claude
2016-11-01 23:26 GMT+01:00 Christian Schneider <[email protected]>: > I typically inject the proxy by interface into the business code. This > makes sure the business code is independent of CXF and easier to test. > This also makes the individual service calls faster than recreating the > proxy every time. > > So I think there is nothing wrong with caching the proxy instance. > > Christian > > > On 01.11.2016 22:04, venkatesham nalla wrote: > >> Hi, >> >> >> Is it a good idea to cache the CXF Service or Port instance on client >> side for later use, to avoid creating the service from WSDL every time? >> What are the disadvantages of caching? >> >> >> thanks, >> >> Venkat >> >> >> > > -- > Christian Schneider > http://www.liquid-reality.de > > Open Source Architect > http://www.talend.com > >
