We currently have a Java webapp with Spring MVC DispatcherServlet and two CXFServlets. DispatcherServlet is the default servlet (mapping / ), one CXFServlet maps to /api/* , and the other to /services/* .
What bothers me is that it seems impossible to have 1 CXFServlet that hosts 2 services, one on /api/v0 and one on /services/myService , without matching /* with CXFServlet. If possible, this will save initialization time, problems with the configuration and memory of another instance of the servlet.
Basically, my question is, does anyone know how to host 2 CXF services on 2 URLs in 1 CXFServlet without a common base / root URL, preferably using Spring namespace configuration, without matching /* with CXFServlet?
source share