Apache CXF and Spring MVC

I created a CXF web service that works well. My service uploads data from ftp to db.

I would like to create a web interface with which invoker can view the progress of its package. I thought it would be easy to integrate Spring MVC with CXF, but there seems to be no good solution. I searched all over the network and couldn't find anything easier than this http://ayax79.wordpress.com/2009/02/19/making-spring-mvc-and-cxf-play-well-together/

The reason I would like to integrate Spring MVC with CXF and not create a standalone web interface is because I have some kind of custom Spring beans in the CXF service that I can use to start and stop the process.

Is it difficult to build an interface on CXF? Or am I just not thinking in the right direction?

+3
source share
1 answer

Your article is more concerned with processing 1) web requests and 2) CXF requests within the same web application, i.e. creating a web application that can accept traditional HTTP requests for MVC pages and also accept web service requests.

The author of this article seems rather confused about Spring and how ApplicationContexts works, as the Felix commentator provides a good and simple solution for what the original author wants to accomplish (reusing the same bean definitions and instances in two contexts with some URLs mapped to DispatcherServlet and other URLs mapped to CXF).

, - Spring MVC CXF, - , , , - CXF/Soap/etc.

Spring - JAXRPC JAXWS:

, , - CXF , wsdl2java. , , : "JAX-WS Proxy" "JAX-WS Dipatch API" , Spring ( ).

+4

Source: https://habr.com/ru/post/1752682/


All Articles