Monday, December 09, 2013

CXF / Spring integration using @Configuration annotation

If you develop JAX-WS services and run outside of Java EE container (that supports e.g. @WebService annotation) you probably use Apache CXF. If you want to integrate your services with CDI (again, outside of Java EE container), you probably use CXF / Spring integration -

This works fine, but the problem is if you want to use exclusively annotations and you don't use XML-base Spring configuration.

There is a solution - so far my own: but I opened a discussion on CXF dev mailing list to check if it could be integrated in CXF source code:  mail thread

If you have another solution, comments or feedback please use CXF dev list.