Hi All,

We have the following service reference

@Reference(
        name = "mediation-engine",
        service = CarbonMessageProcessor.class,
        cardinality = ReferenceCardinality.AT_LEAST_ONE,
        policy = ReferencePolicy.DYNAMIC,
        unbind = "removeMediationEngine"
)
protected void addMediationEngine(CarbonMessageProcessor
carbonMessageProcessor) {
    ContextHolder.getInstance().addEngine(carbonMessageProcessor);
}


but the bundle which has this service reference gets activated regardless
of the referencing service (CarbonMessageProcessor service)
Is this the expected behavior.

Regards
Senduran

-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
Mobile: +94 77 952 6548
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to