Hi Sergey,

Thanks for the info.
Could you just tell me if auto discovered providers, we are using the spring 
discovery method, should also automatically be registered in the 
jaxrsserverfactorybean? That would be expected behavior, not?

This does not seem to happen in our case. We are using cxf 3.0.4 .

The jaxrsserverfactorybean is registered as a regular spring bean (plain <bean> 
in xml application context ) and we still need to inject the providers into the 
factory’s providers property. Otherwise they do not get picked up. Same goes 
for resources.

There is @provider and @Component annotation on it and spring component scan 
picks them up correctly.

Any advice on where we should start looking?

Thanks

> Op 2 okt. 2015, om 17:47 heeft Sergey Beryozkin <sberyoz...@gmail.com> het 
> volgende geschreven:
> 
> Hi
> 
> Some info is here:
> 
> http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Auto-discoveryofrootresourcesandproviders
> 
> Also, the last sentence at
> 
> http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-ServletandApplicationContainerConfiguration
> 
> needs to be expanded, Andriy Redko worked on having Application and/or 
> providers optionally auto-discovered without Spring (per 2.0 spec).
> 
> Perhaps we need to spend more time on expanding a Spring Boot section too, 
> given that we have a utility code support for @Bean, etc
> 
> Sergey
> 
> On 01/10/15 14:11, Peter De Winter wrote:
>> Hello all,
>> 
>> In regards to https://issues.apache.org/jira/browse/CXF-4199
>> 
>> I would like to investigate auto discovery for providers and resource
>> endpoints.
>> 
>> It's kind of difficult to identify the solution which was implemented.
>> Is there any documentation or example to read?
>> 
>> 
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://cxf.547215.n5.nabble.com/Auto-discover-providers-JAXRSServerFactoryBean-tp5761393.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>> 
> 
> 
> -- 
> Sergey Beryozkin
> 
> Talend Community Coders
> http://coders.talend.com/

Reply via email to