Hi,

I'm trying to have classes annotated with @WebServices  automatically 
published by CXF, except for the ones declared in the classic Spring XML 
configuration.  I'm using CXF 3.0.2 and Spring 4.0.1.

Is there any way to have this with CXF 3 or if there is some ongoing 
development ?

I did some tests with class  JaxWsWebServicePublisherBeanPostProcessor , 
that according to the javadoc is supposed to do exactly what I'm looking 
for, but with my set-up doesn't seem to work properly. 
Looks like the service beans are processed and published somewhere:

16:31:46,828 INFO 
[org.apache.cxf.jaxws.spring.JaxWsWebServicePublisherBeanPostProcessor] 
(ServerService Thread Pool -- 70) Publishing bean tempconvert class 
it.iacopo.tempconvert.TempConvertImplServiceImpl as a service at 
it.iacopo.tempconvert.TempConvertImplServiceImpl.

But they are not available through the CXFServlet that I registered 
(programmatically through 
org.springframework.web.WebApplicationInitializer ). I think that the 
problem is that this class works only when a servlet specific Spring 
WebApplicationContext is used (the class is implementing 
ServletConfigAware), but I didn't found any documentation mentioning this. 

Could you confirm and suggest me whether should I open an issue or not? 
Thanks

For more details checkout the test application I developed at 
https://bitbucket.org/iacoporozzo/spring-cxf-webapp refer to branch 
"auto-registration". 

Best regards,

Iacopo Rozzo
Software Development Engineer, Framework
R&D-AQG-SCS-CAS-FRW
Amadeus IT Group SA
Phone: (+33)4 97 15 87 39
Office: EA7072

Reply via email to