Hi,

i'm trying to create managed beans with @Producer, but only for
PropertiesComponent
works. In the example below method prodceProperties works,  produceConfig
not.

Is there a limitation under camel for @Producer ?


@ApplicationScoped
public class TestProducer {

    @Produces
    @Named("prop")
    public PropertiesComponent produceProperties() {
        System.out.println("Produces Properties");
        return null;
    }

    @Produces
    @Named("not-prop1")
    public MyBean produceConfig() {
        System.out.println("Not Properties");
        return null;
    }

}



-----
kh
--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-2-17-Producer-works-only-for-select-objects-tp5782226.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to