Hi Jan, I myself have no experience with the combination of Spring/CXF/Olingo. But after a short look into CXF documentation here: https://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServices Configuration-ConfiguringJAX-RSservicesincontainerwithSpringconfigurationfi le. I think your mentioned way with the CXFServlet is the right one. Then the 'org.apache.cxf.jaxrs.JAXRSServerFactoryBean' is necessary which delegates to an implementation similar to current existing 'ODataSubLocator' to create the 'ODataRequest' object which then can be handled by the 'ODataRequestHandler' which calls the OData service. But to be honest these assumptions are not tested ;o)
Perhaps you could create an JIRA issue (Wish/Enhancement) that Spring/CXF should be supported with Olingo. So we have a common place to discuss and resolve this and perhaps find somebody who already have experience with the combination of Spring/CXF/Olingo. Kind regards, Michael On 05/03/14 17:43, "Jan Penninkhof" <[email protected]> wrote: >Hello! > >Most tutorials and examples on the Olingo site are based on >the CXFNonSpringJaxrsServlet. I would like to reuse components from an >exising CXF-Spring application though, which require the Spring framework >to be booted. > >What would be the recommended way to get Spring booted up? Is there >perhaps >another Servlet that could be invoked or should spring be booted by adding >code to boot the framework? And if I e.g. use CXFServlet instead of >CXFNonSpringJaxrsServlet, how should I pass the required init parameters >such as javax.ws.rs.Application >and org.apache.olingo.odata2.service.factory? > >Thanks! > >Best regards, >Jan Penninkhof
smime.p7s
Description: S/MIME cryptographic signature
