On Tuesday, January 18, 2011, Shammi Jayasinghe <[email protected]> wrote: > Hi , > > In the process of providing multi tenant support for CEP , there are two > components (broker-manager and cep) that are needed to implement the > interface Axis2ConfigurationContextObserver. > In that case, i need to control the order of invoking of these > implementations since CEP is depend on broker-manager and , broker manager > has to load some resources from registry which are needed for CEP. > > > What is the possible way to do this ?
Yea this is possible, this pattern is a common one in the carbon platform. You can implement this interface(Axis2ConfigurationContextObserver) in the broker manager component and register it as an OSGi service. When a new tenant is created, this service will be notified. This is the white-board pattern that we have followed. Then you do all the work in the broker manager component. Now you need to register another OSGi service(say X) from the broker manager component. CEP component should be listening to X services. When an X service is available, CEP component will be triggered. This way you can order the initialization of components. Thanks, Sameera. > > Thanks > -- > Best Regards, > > Shammi Jayasinghe > Senior Software Engineer; WSO2, Inc.; http://wso2.com, > mobile: +94 71 4493085 > > > -- Sameera Jayasoma Technical Lead and Product Manager, WSO2 Carbon WSO2, Inc. (http://wso2.com) email: [email protected] blog: http://tech.jayasoma.org Lean . Enterprise . Middleware _______________________________________________ Carbon-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
