Hi Sergey,

thanks for the feedback. You're right the beans are annotated with Spring
annotations, this is needed to have the clients injected to other classes.
If I remove the annotation, autowiring will be no longer possible.

I agree that component scan must be done without @ComponentScan to fix that.
What about excluding beans created by JAXRSClientFactoryBean in
AbstractSpringComponentScanServer? Would it be easier to fix? In my view it
doesn't make sense to expose that client beans as resources in any case...

Cheers
Dennis



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Limit-JAX-RS-Spring-component-scan-to-certain-packages-tp5776205p5776504.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to