Hi Devs, Why $subject ? Can't we move these tenant specific code into the class which extends the AbstractAxis2ConfigurationContextObserver?
Due to $subject, DataSource component has a dependency to the "ConfigurationContextService" OSGI service. Let me explain the reason why I need to get rid of the dependency to "ConfigurationContextService" OSGI service. Currently, BPEL processes are deployed after the Carbon server started. This causes issues when the tenant lazy loading happens. Currently, the BPEL processes get deployed after the service request dispatched. This causes "service not found" exceptions. As a fix for this issue, we moved the BPEL deployer to a new bundle and introduced a OSGI service dependency to the BPEL engine. Just introducing an OSGI service dependency to the BPEL engine is not enough, we should make sure that the bundle with the BPEL engine get started/activated before the BPEL deployer get initiated. We enforced this behavior by introducing the <Axis2RequiredServices>org.wso2.carbon.bpel.BPELEngineService</Axis2RequiredServices> in the BPEL deployer's Maven bundle plugin. But, we have an OSGI dependency to the DataSource's OSGI service from the BPEL engine. Since, DataSource has a dependency to the "ConfigurationContextService", DataSource component does not get activated until Axis2 bundle get activated. But Axis2 bundle does not get activated until BPEL engine get activated. As you can see, there is a cyclic dependency between these OSGI services. Therefore, if we can get rid of the dependency to "ConfigurationContextService" OSGI service from the DataSources bundle, we can fix this problem without ugly workarounds. Back to my original question Why $subject ? Can't we move these tenant specific code into the class which extends the AbstractAxis2ConfigurationContextObserver? I appreciate your feedback, in-order to resolve this issue. Thanks, Waruna -- ------------------------------------------------------------------------- Waruna Ranasinghe Senior Software Engineer, WSO2 Mobile: SL +94 724 318285 BLOG: http://warunapw.blogspot.com www.wso2.com - "Lean . Enterprise . Middleware"
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev