CXF + dynamic client does not load to system classloader

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

CXF + dynamic client does not load to system classloader

sumeet_it
I am invoking below code from servlet(just for testing)

JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
client = dcf.createClient("/sm/ws/wsdl/DataImportUtility.wsdl", Thread.currentThread().getContextClassLoader())

The issue is for every request to my servlet it creates the classes.
How can i cache the classes in clasLoader so its faster on the next request?

Thanks,
Sumeet
Loading...