Hi

How are you running this in OSGi - eg are you using camel-blueprint or
something?

For OSGi we generally only support OSGi blueprint and therefore you
should setup your beans in the xml file as <bean>.

For any kind of @Component scanning in OSGi then I dont think its
something we tend to use so much, or if so then maybe there is
something
you need to turn on in the OSGi blueprint xml file to enable this or
what else may be required.


On Thu, Sep 13, 2018 at 6:34 PM Rajith Muditha Attapattu
<rajit...@gmail.com> wrote:
>
> I have a bean marked as follows
> @Component(immediate = true, service = AggregationStrategy.class, property
> = "name=myAggStrategy")
>
> Component is of type org.osgi.service.component.annotations.Component
>
> When my camel context is loaded it complains that it cannot find "
> myAggStrategy".
> It seems like I'm either using the wrong annotation or missing a step.
>
> Is there an example around this? Wondering what I'm missing.
>
> Regards,
>
> Rajith Muditha Attapattu <http://rajith.2rlabs.com/>



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to