On Fri, Jan 21, 2011 at 9:58 AM, Amila Suriarachchi <[email protected]> wrote:
> > > On Wed, Jan 19, 2011 at 1:46 PM, Hiranya Jayathilaka <[email protected]>wrote: > >> >> >> On Tue, Jan 18, 2011 at 5:26 PM, 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 ? >>> >> >> I think observers get notified in the order they were registered. >> > > I think the problem here is not invoking the observers in the same order > bundles have register them. > > In fact carbon components get invoked in an order controlled by the > declarative services. If the the tenent observers also get invoked in the > same order (i.e registered order) that would be sufficient for most cases. > Actually tenant observers are getting invoked in the same order (Registered order) and there is nothing to control invoking order from out side . It was my fault and i have done wrong thing in registration of Axis2ConfigurationContextObserver and it caused me this problem. Thanks a lot. Thank you very much > > thanks, > Amila. > > >> So if you can control the registration order, then you have a guarantee >> regarding the order of notification. If not we will have to add a method to >> the observer registration API which will enable the programmer to enforce >> this kind of restrictions. For an example: >> >> addAfter(Observer o1, Observer o2) >> addBefore(Observer o1, Observer o2) >> >> Thanks, >> Hiranya >> >> >>> >>> Thanks >>> -- >>> Best Regards,* >>> >>> Shammi Jayasinghe* >>> Senior Software Engineer; WSO2, Inc.; http://wso2.com, >>> mobile: +94 71 4493085 >>> >>> >>> >>> _______________________________________________ >>> Carbon-dev mailing list >>> [email protected] >>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >>> >> >> >> -- >> Hiranya Jayathilaka >> Senior Software Engineer; >> WSO2 Inc.; http://wso2.org >> E-mail: [email protected]; Mobile: +94 77 633 3491 >> Blog: http://techfeast-hiranya.blogspot.com >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > _______________________________________________ > Carbon-dev mailing list > [email protected] > https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- Best Regards,* Shammi Jayasinghe* Senior Software Engineer; WSO2, Inc.; http://wso2.com, mobile: +94 71 4493085
_______________________________________________ Carbon-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
