On Fri, Feb 10, 2017 at 5:14 PM, wenxing zheng <[email protected]>
wrote:

>
> Thanks to Lakshman.
>
> I need to do the verification again as I remembered I follow that way
> before, but it didn't always work.
>
> So the CarbonContext is per thread? and we can do the switch of the tenant
> flow freely?
>

You can check this yourself by printing thread id when tenant flow start
method called.

Thread.currentThread().getId();


Thanks,

Lakshman


> On Fri, Feb 10, 2017 at 7:35 PM, Lakshman Udayakantha <[email protected]>
> wrote:
>
>> Hi wenxing,
>>
>> Did you try out switching tenant flow mentioned in documentation [1]?
>>
>> [1] https://docs.wso2.com/display/Carbon420/CarbonContext+
>> API#CarbonContextAPI-Switchingtenantflows
>>
>> Thanks,
>> Lakshman.
>>
>> On Fri, Feb 10, 2017 at 4:25 PM, wenxing zheng <[email protected]>
>> wrote:
>>
>>> Hi Experts,
>>>
>>> please kindly advice as it really blocks our release.
>>>
>>> Thanks again, Wenxing
>>>
>>> On Fri, Feb 10, 2017 at 1:11 PM, wenxing zheng <[email protected]>
>>> wrote:
>>>
>>>> Appreciated for any advice as I need to find the way a.s.a.p so that we
>>>> don't block the release.
>>>>
>>>> Kind Regards, Wenxing
>>>>
>>>> On Fri, Feb 10, 2017 at 12:05 PM, wenxing zheng <
>>>> [email protected]> wrote:
>>>>
>>>>> Dear all,
>>>>>
>>>>> I have introduced the Quartz Scheduler into our application based on
>>>>> AS 5.3.0. Now we met with a situation like the following:
>>>>>
>>>>>    - Quartz Scheduler will start up a Thread pool to run the Job
>>>>>    being scheduled
>>>>>    - Tenant user may schedule its own job with JobContext, like:
>>>>>    TenantID, TenantDomain and CurrentUser
>>>>>
>>>>> During the execution of the job, we need to switch from one tenant to
>>>>> another one, what's the correct way to switch?
>>>>>
>>>>> Thanks, Wenxing
>>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0717429601*
>>
>>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0717429601*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to