[prev in list] [next in list] [prev in thread] [next in thread]
List: axis-c-dev
Subject: Re: Properties in Configuration Context
From: Uthaiyashankar <shankar () wso2 ! com>
Date: 2008-10-16 3:51:09
Message-ID: 48F6B75D.90609 () wso2 ! com
[Download RAW message or body]
Damitha Kumarage wrote:
> Hi Danushka,
> We could easily wrap the base context functions in conf_ctx, op_ctx,
> svc_ctx, svc_grp_ctx and msg_ctx. But this considerbly increase the
> lines of code. As I remember this was the main reason for not doing it
> previously. However I also agree that it is nice to have these wrapper
> functions in main contexts.
And Danushka's proposal includes internal mutexes as well. i.e. when we
set/get some property to conf_ctx, only one thread can set/get which is
very useful. If we get base context and then set the property, we have
to have an external mutex and manage them, which is always a problem. I
am +1 to add the methods as Danushka suggested.
Regards,
Shankar.
>
> Thanks,
> Damitha
>
> Danushka Menikkumbura wrote:
>> Hi Devs,
>> We have been using the base context of conf_ctx to keep custom
>> properties. What we normally do is, get the base context and use its
>> (axis2_ctx) API to set/get properties. And we use external mutexes
>> for synchronization. Why don't we have get/set calls in conf_ctx API
>> itself so that we can set/get properties without any hassle. And that
>> way we can use the mutex in conf_ctx to handle synchronization. I
>> think that is the cleaner way of accessing the base.
>>
>> Any thoughts?
>>
>> Danushka
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>>
>>
>
>
--
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - "The Open Source SOA Company"
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic