These are registered as osgi services. They get invoked sequentially. But, depending on the order the services are registered, which service gets called first is undefined.
To order the observers, may be you should try to make sure that the APIM bundle that registers its Axis2ConfigurationContextObserver implementation should wait till synapse bundle gets activated. On Wed, Mar 30, 2016 at 10:46 AM, Bhathiya Jayasekara <[email protected]> wrote: > Hi all, > > I have 2 questions regarding AbstractAxis2ConfigurationContextObservers. > > 1) $subject. Let me explain the real problem we're trying to solve here. > Synapse has an AbstractAxis2ConfigurationContextObserver implementation > which creates synapse directory structure for a new tenant. APIM also has > such an implementation to copy a synapse sequence to a new tenant, which *must > happen after* the synapse one. It doesn't work properly unless the > synapse one runs first, because the synapse one creates the directory > structure. > > 2) If above 1 is not possible, we can let APIM one wait until the synapse > one completes, *if* AbstractAxis2ConfigurationContextObservers run in > parallel. So can you tell me whether they run in parallel or sequentially? > > Thanks, > -- > *Bhathiya Jayasekara* > *Senior Software Engineer,* > *WSO2 inc., http://wso2.com <http://wso2.com>* > > *Phone: +94715478185 <%2B94715478185>* > *LinkedIn: http://www.linkedin.com/in/bhathiyaj > <http://www.linkedin.com/in/bhathiyaj>* > *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>* > *Blog: http://movingaheadblog.blogspot.com > <http://movingaheadblog.blogspot.com/>* > -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
