Hopefully you can get an authoritative answer from someone here, but you
might wish to check in the Spring MVC forum whether there's a way to map
certain incoming requests (based on a predefined set of URLs) already
picked up by DispatcherServlet to another servlet instead (you don't
even have to mention CXFServlet, it's a generic question.) I suspect
this issue has come up before and they may have ideas for you.
Glen
On 07/09/2012 08:22 AM, jpcook01 wrote:
Hello,
I already have a nice custom CXF request handler filter which I would like
to know if it is possible to plug into a Spring MVC web application which
has resources annotated like so:
@RequestMapping(value="/version.json",
method = RequestMethod.GET,
produces="application/json")
So my question is really is it possible to plugin the:
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
and the:
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
Into the same app so then I can make use of my cxf request handler filter
like so:
<jaxrs:server id="jaxrs-myService" address="/">
<jaxrs:serviceBeans>
<bean class="bbc.forge.dsp.jaxrs.ThingApi">
<constructor-arg ref="responseHandler"/>
</bean>
</jaxrs:serviceBeans>
<jaxrs:providers>
<ref bean="whitelistFilter"/>
</jaxrs:providers>
</jaxrs:server>
Ideally I would only use one framework but for now that isn't possible.
Maybe it isn't possible?
Thanks
Jon
--
View this message in context:
http://cxf.547215.n5.nabble.com/Spring-MVC-with-Apache-CXF-Request-Handler-tp5710746.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Glen Mazza
Talend Community Coders
coders.talend.com
blog: www.jroller.com/gmazza