On 28/10/14 11:25, Vjacheslav V. Borisov wrote:
2014-10-28 14:21 GMT+04:00 Sergey Beryozkin <[email protected]>:

That should not be needed... Did you add @Component annotations too to the
auto-discovered service beans ?
I'll try to write a test when I get some free time...


Yes, @Component works with <context:component-scan base-package="xxx"/>

But does this not interferes with cxf process of bean registration?

I don't think it does, I guess it just duplicates the CXF JAX-RS 'own' Spring auto-discovery process which is not a big issue IMHO, makes it a bit slower to register. What I actually do plan to do though, something I referred to earlier on, is to support a case where you just do

<jaxrs:server address="/"/>

and Spring specific <context:component-scan base-package="xxx"/> plus @AutoWired/@Component and it will set up the endpoint...

We have some code support for doing Spring @Configuration driven set-up of CXF JAXRS endpoints too...

Cheers, Sergey


Reply via email to