To handle this particular scenario, we had to delay the CAppDeployer
initialization (common to all servers). It was done by moving the
initialization part to server start-up finalization component. Then once
tenantServiceBus gets initialized, we could retrieve the related deployer
using synapseEnvService as per above code. Seems like this change has been
removed from StartupFinalizerComponent.
@Sameera, any reason for this change?


On Tue, Nov 5, 2013 at 6:50 PM, Dushan Abeyruwan <[email protected]> wrote:

> $subject, due to recent major re-factoring in deployments, the CAR
> deployment has been totally broken, did kind of investigation found that...
>
> in synapse Deployer
>
>   private Deployer getDeployer(AxisConfiguration axisConfig, String
> directory) {
>         Deployer deployer = null;
>         // access the deployment engine through axis config
>         DeploymentEngine deploymentEngine = (DeploymentEngine)
> axisConfig.getConfigurator();
>         String tenantId = AppDeployerUtils.getTenantIdString(axisConfig);
>         *SynapseEnvironmentService environmentService =
> DataHolder.getInstance().*
> *                getSynapseEnvironmentService(Integer.parseInt(tenantId));*
>         if (environmentService != null) {
>             String synapseConfigPath =
> ServiceBusUtils.getSynapseConfigAbsPath(
>
> environmentService.getSynapseEnvironment().getServerContextInformation());
>             String endpointDirPath = synapseConfigPath
>                                      + File.separator + directory;
>             deployer = deploymentEngine.getDeployer(endpointDirPath,
>
> ServiceBusConstants.ARTIFACT_EXTENSION);
>         }
>         return deployer;
>     }
>
>
>  the above highlighted section..(basically  SynapseAppDeployer) getting
> invoked before TenantServiceBusInitializer component initialized, thus it
> can not find relevant  synapse env... any thoughts how we should mitigate
> this problem ?
>
>     anyway have we EVER done any sort of testings with those deployment
> changers with ESB  specially in the *context of Multitenancy mode ? *sounds
> like never..
>
>
> Cheers,
> Dushan Abeyruwan
> Associate Tech Lead
> *Integration Technologies Team*
> *WSO2 Inc. http://wso2.com/ <http://wso2.com/>*
> *Mobile:(+94)714408632 <%28%2B94%29714408632>*
>



-- 
*Kishanthan Thangarajah*
Senior Software Engineer,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to