I am sorry, we cannot remove this and use just the init method which accepts Synapse Env because, when you call init by passing the Synapse Env the ConfigurationContext is still being populated and the ConfigurationContext is sort of at an intermediate state. So if we try to use the SynapseEnv.createMC to get hold of the CfgCtx it night cause issues.
This is because the Synapse initialization happens as a module for axis2 and it initializes while axis2 is in the process of initializing. I agree it is a little bit ugly to have two levels of initializations, but I think it is not that safe to just remove it and live with only one. We might come across issues on the loadbalaced and failover endpoints on the clustered enviorenment with a fair amount of load for the cluster. Thanks, Ruwan On Sat, Jan 24, 2009 at 12:40 AM, Asankha C. Perera <[email protected]>wrote: > Hi Andreas > >> Since you added the second init method, WDYT about this issue? >> >> >> >>> I noticed that we have two different init methods for Synapse mediators: >>>> >>>> - One is defined by the optional ManagedLifecycle interface with the >>>> following signature: >>>> >>>> void init(SynapseEnvironment se) >>>> >>>> - The other is defined by AbstractMediator with the following signature: >>>> >>>> void init(ConfigurationContext cc) >>>> >>>> Is there any particular reason for this? It should be noted that the >>>> ConfigurationContext can be obtained from the SynapseEnvironment by >>>> casting it to Axis2SynapseEnvironment. Therefore I think that the >>>> second method should be eliminated. WDYT? >>>> >>>> >>> As I remember this was to accommodate endpoints that required access to > the ConfigurationContext to operate in clustered environments, but which > could be defined anonymously within the scope of sequences. (See > AbstractEndpoint#init(cc)) > > If this could be safely removed, I have no objection for the removal of the > method from the AbstractMediator > > cheers > asankha > > -- > Asankha C. Perera > http://adroitlogic.org > > http://esbmagic.blogspot.com > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Ruwan Linton http://wso2.org - "Oxygenating the Web Services Platform" http://ruwansblog.blogspot.com/
