Please replace the CarbonDeploymentSchedulerTask. runAxisDeployment method
with the following code:

    public synchronized void runAxisDeployment() {
        PrivilegedCarbonContext carbonContext =
PrivilegedCarbonContext.getThreadLocalCarbonContext();
        carbonContext.setTenantId(tenantId);
        carbonContext.setTenantDomain(tenantDomain);
        carbonContext.setApplicationName(null);
        super.run();
        // this should run for tenants only
        if (GhostDeployerUtils.isGhostOn() && CarbonUtils.isWorkerNode() &&
tenantId > 0) {
            doInitialGhostArtifactDeployement();
        }
    }


On Mon, Nov 19, 2012 at 3:38 PM, Afkham Azeez <[email protected]> wrote:

>
>
> On Mon, Nov 19, 2012 at 1:30 PM, Anjana Fernando <[email protected]> wrote:
>
>> Hi,
>>
>> I was checking the issue [1], and by going through the code, I found that
>> when the deployment sync. message is coming to a server, it is running the
>> scheduled task manually by calling
>> "CarbonDeploymentSchedulerTask#runAxisDeployment" [2], which in turn calls
>> "ScheduleTask#run" method (the super type's method) directly, and it is
>> missing the code, that is there in CarbonDeploymentSchedulerTask#run, which
>> sets the tenant flow, which would have been called when the task is running
>> normally. Can someone please review this code and do the fix accordingly.
>>
>>
> I'll look into this.
>
>
>> [1] https://wso2.org/jira/browse/STRATOS-2217
>> [2]
>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.0.0/core/org.wso2.carbon.core/4.0.5/src/main/java/org/wso2/carbon/core/deployment/CarbonDeploymentSchedulerTask.java
>>
>> --
>> *Anjana Fernando*
>> Associate Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **[email protected]* <[email protected]>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to