to get reference from one signleton resource to other sigleton resource
>>>> and call its methods?
>>>>
>>>> Should be possible in CXF 3.0.2 (released last week), Spring
>>>>
>>> AutowireCapableBeanFactory.AUTOWIRE_BY_TYPE is used to initialize the
>>> discovered beans...
>>>
>>>
>>
>> What annotation should I use to get resource injected ?
>>
>> It is a Spring Forum FAQ
>
May be I am doing something wrong, but @Autowired (tried on method and
property) does not work, I am getting
org.springframework.beans.factory.NoSuchBeanDefinitionException
No qualifying bean of type [xxx.SegmentResourceImpl] found for dependency:
expected at least 1 bean which qualifies as autowire candidate for this
dependency. Dependency annotations:
{@org.springframework.beans.factory.annotation.Autowired(required=true)}
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1103)
i have in beans.xml
<bean
class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor">
<property name="alwaysUseJndiLookup" value="true" />
</bean>
<context:annotation-config/>
<jaxrs:server address="/" basePackages="xxx">
...