We came up with a generic solution to this problem after a discussion with
Azeez, Sagara, Shameera, IsuruU and myself.

We are planning to maintain all the properties that should get copied in a
property file. This file will contain properties which should get copied
from super-tenant MsgCtx to tenant MsgCtx in the inflow and from tenant
MsgCtx to super-tenant MsqCtx in the outflow...

Kernel code will perform this copying of properties..

Thanks,
Sameera.


Thanks,
Sameera.


On Tue, Jul 22, 2014 at 3:51 PM, Sagara Gunathunga <[email protected]> wrote:

>
>
>
> On Mon, Jul 21, 2014 at 11:21 PM, Sameera Jayasoma <[email protected]>
> wrote:
>
>> Hi Malaka,
>>
>> Can you please explain the reason to copy all the properties here?
>>
>>
>>
>>
>> // Copy all the properties
>>
>>
>>
>>
>>              Map<String, Object> mOriginalProperties = 
>> msgContext.getProperties();
>>
>>
>>
>>              for (String strKey : mOriginalProperties.keySet()) {
>>
>>
>>
>>                      superTenantOutMessageContext.setProperty(strKey,
>>
>>
>>
>>                                      mOriginalProperties.get(strKey));
>>
>>
>>
>>              }
>>
>>
>>
>>
>>
>>
>>
>>
>> Sagara, Can you please review the axis2 patch?
>>
>>
> Above Axis2 change breaks hierarchical context concept[1] in Axis2, As an
> example it is possible to override parent level property in child level
> context. I don't think we can accept above change for Axis2, anyway since
> this is a Axis2 core change first you need to discuss this change in Apache
> dev list otherwise we can't push this to Apache trunk ever.
>
>
> [1] -
> http://wso2.com/library/tutorials/understanding-axis2-context-hierarchy/
>
> Thanks !
>
>>
>>
>>
>> On Mon, Jul 21, 2014 at 5:45 PM, Malaka Silva <[email protected]> wrote:
>>
>>> Hi Carbon Team,
>>>
>>> Please merge the following pull requests
>>>
>>> 1) https://github.com/wso2-dev/wso2-axis2/pull/10
>>> 2) https://github.com/wso2-dev/carbon4-kernel/pull/37
>>>
>>> Related jira : https://wso2.org/jira/browse/ESBJAVA-3171
>>>
>>> Thank you
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> <http://wso2.com/about/team/malaka-silva/>
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: [email protected]
>> blog: http://sameera.adahas.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Sagara Gunathunga
>
> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;    http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: [email protected]
blog: http://sameera.adahas.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to