Hi

I believe for this to work you'd need to have 2 CXFServlets and deployed a bundle as a war-bundle

https://github.com/Talend/tesb-rt-se/blob/master/examples/cxf/jaxrs-jaxws-transformations/war-bundle/src/main/resources/WEB-INF/web.xml

If you have Blueprint contexts, then try CXFBlueprintServlet:

https://github.com/apache/cxf/blob/master/systests/jaxrs/src/test/resources/jaxrs_soap_blueprint/WEB-INF/web.xml

(with the same redirect parameters)

It was awhile since I looked into it, but it can work...

Perhaps a simpler alternative is to have a JAX-RS 2.0 pre-match filter in front of the old endpoint redirecting to the new endpoint bby updating the request URI...

HTH, Sergey
On 25/09/17 22:00, smunro wrote:
Hello,

I'm a little new to using cxf with osgi, so I may be over complicating this
somewhat..

Basically, I have a org.apache.cxf.osgi.cfg file with
org.apache.cxf.servlet.context=/demo-client/api

This is fine if the user plugs in http://localhost:8181/demo-client/api,
however, I also need to be able to redirect http://localhost:8181 to
http://localhost:8181/demo-client/api.

Is there an easy way to do this via the config or blueprint file? ive tried
using the redirectList param, but I've not managed to get it to work.

Any ideas would be welcome.

Thanks,
Stephen



--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Reply via email to