Hi there,
I want to use two CXFServlets in my web.xml, one for public and one for
private services.
I tried to define
<servlet>
<servlet-name>CXFPrivateServlet</servlet-name>
<servlet-class>
org.apache.cxf.transport.servlet.CXFServlet
</servlet-class>
<init-param>
<param-name>config-location</param-name>
<param-value>/WEB-INF/private.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CXFPrivateServlet</servlet-name>
<url-pattern>/services/private/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>CXFPubicServlet</servlet-name>
<servlet-class>
org.apache.cxf.transport.servlet.CXFServlet
</servlet-class>
<init-param>
<param-name>config-location</param-name>
<param-value>/WEB-INF/public.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CXFPublicServlet</servlet-name>
<url-pattern>/services/public/*</url-pattern>
</servlet-mapping>
This does not seem to work. If I have two servlets like this it loops in the
service endpoint publishing.
If I only define a single config-location and servler-mapping, then the
servlet endpoints are published in the startup, but the servlet does not
serve the WSDL or overview page.
Is there a better way to achieve that?
K<o>
P.S.: This is all part of a spring configured container. When I define a
global include of the endpoint beans and a CXFServlet w/o any
config-location, then the services are deployed, but all under a single URI.
--
View this message in context:
http://cxf.547215.n5.nabble.com/separate-CXFServlet-for-private-API-s-tp3261355p3261355.html
Sent from the cxf-user mailing list archive at Nabble.com.