Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 75470 invoked from network); 19 May 2007 01:20:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 May 2007 01:20:36 -0000 Received: (qmail 84980 invoked by uid 500); 19 May 2007 01:20:35 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 84927 invoked by uid 500); 19 May 2007 01:20:35 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 84915 invoked by uid 99); 19 May 2007 01:20:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 18:20:35 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of chamikaramj@gmail.com designates 64.233.162.224 as permitted sender) Received: from [64.233.162.224] (HELO nz-out-0506.google.com) (64.233.162.224) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 18:20:28 -0700 Received: by nz-out-0506.google.com with SMTP id m7so1489250nzf for ; Fri, 18 May 2007 18:20:07 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Or52y2OTySOqevYtEvGk0wL0qyex/HaUNSmedB7QAdjujiNxT+gGq8aCnde3H4zzhcJBm80jJMh9HSUooS4EGrmw4UMousG2cUZFFvSfbdty7dSPf4pFmiZzcpFXbAIotsycPwHzJbLS5s6wx5ANKrx+taYBLSmmX0xgNLA40x8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=CRrQA4Zj80PRRM1FUGrq/SPxqql3Dcd5mP9eAvYxZ1eae3I0ripaHsgPk8cl25HkbFPTy/yS+vWD9a7KZO8SJQqmJkQ+TdbT2ubBDMJgHB8ZTvDyrtv3e13KnPYx+aO/OdIsvL2mRF2Y2Hy92risp5FOlWjsfQRknXa+QGZsuCY= Received: by 10.65.215.14 with SMTP id s14mr874121qbq.1179537607611; Fri, 18 May 2007 18:20:07 -0700 (PDT) Received: by 10.65.188.10 with HTTP; Fri, 18 May 2007 18:20:07 -0700 (PDT) Message-ID: <9d4ec10b0705181820od26f533mfadcae44d0d226fb@mail.gmail.com> Date: Sat, 19 May 2007 06:50:07 +0530 From: "Chamikara Jayalath" To: axis-dev@ws.apache.org Subject: Re: [Axis2] Clustering: Replicating properties in the context hierachy In-Reply-To: <19e0530f0705180831p789aa936u811f64bf24ca7321@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24052_24334253.1179537607500" References: <9b85c45f0705180416w294e6335y8b355c3d27128e46@mail.gmail.com> <19e0530f0705180710q73495ac1wa20c7ee1a68b5a82@mail.gmail.com> <19e0530f0705180718h7d2b3b13o2fb94085db79e5ea@mail.gmail.com> <9b85c45f0705180737k435a3703h94566af49f055fbc@mail.gmail.com> <19e0530f0705180831p789aa936u811f64bf24ca7321@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_24052_24334253.1179537607500 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Guys, Sorry about joining to the conversation late. I also agree to the point that there could be Node specific properties but dont think it's good to change the Axis2 property handling interface (this will look bad in the non-clustered case). Expression based solution seems to be good. +1 for that. ' "*" means (one or more characters)' looks good enough for me. Chamikara On 5/18/07, Davanum Srinivas wrote: > > Sounds good to me Azeez. > - Should the name(s) be regexp expressions or just a simple "*" means > (one or more characters)? > - So is there a implicit ? Should we allow folks to > set includes as well (like in ant tasks). Guess it's an overkill. > > thanks, > dims > > On 5/18/07, Afkham Azeez wrote: > > Great idea Dims. > > > > So under the ContextManager entry in the axis2.xml, we can specify the > > patterns of the property name which have to be excluded from > replication. > > e.g. > > > > > class="org.apache.axis2.cluster.tribes.context.TribesContextManager > > "> > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > > > > > > > > > So any of the context properties matching a particular property will not > be > > replicated. > > > > -- Azeez > > > > > > On 5/18/07, Davanum Srinivas wrote: > > > > > > Only other thing i can think of is similar to you know the proxy > > > settings...have regexp based includes and excludes (on the key) in the > > > ClusterManager for the default properties we already have and allow > > > API access (and/or axis2.xml entries) for folks to add/delete from the > > > list of includes/excludes. that's that other extreme... > > > > > > -- dims > > > > > > On 5/18/07, Davanum Srinivas wrote: > > > > Azeez, > > > > > > > > Did you already rule out a simple solution? If a service author > wants > > > > a specific custom property to be available, then they can add a > simple > > > > prefix to the key in the Map? > > > > > > > > thanks, > > > > dims > > > > > > > > On 5/18/07, Afkham Azeez < afkham@gmail.com> wrote: > > > > > We have a problem when it comes to replicating properties in our > > clustering > > > > > implementation. There are some properties which are specific to a > > node, > > > > > specially properties in the ConfigurationContext. Some properties > are > > added > > > > > by different modules such as Sandesha2, Rampart to the > > ConfigurationContext. > > > > > One thing is that these objects are not serializable, and the > other > > thing is > > > > > that these properties should not be replicated. Some information > which > > are > > > > > specific to a node may be added to the ConfigurationContexts, and > > these > > > > > should never be replicated. > > > > > > > > > > So there should be some way to inform Axis2 about the properties > that > > need > > > > > to be clustered and those that shouldn't be clustered. > > > > > > > > > > I suggest we introduce a new Map to AbstractContext called > > > > > clusterableProperties. Stuff that are added to this Map will be > > replicated, > > > > > and the service author/module author has to add the properties > that > > need to > > > > > be replicated into the clusterableProperties Map. > > > > > > > > > > Thoughts? > > > > > > > > > > -- > > > > > Thanks > > > > > Afkham Azeez > > > > > > > > > > http://www.wso2.org > > > > > GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E > 0760 > > > > > > > > > > > > -- > > > > Davanum Srinivas :: http://davanum.wordpress.com > > > > > > > > > > > > > -- > > > Davanum Srinivas :: http://davanum.wordpress.com > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > axis-dev-unsubscribe@ws.apache.org > > > For additional commands, e-mail: axis-dev-help@ws.apache.org > > > > > > > > > > > > > > -- > > > > Thanks > > Afkham Azeez > > > > http://www.wso2.org > > GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760 > > > -- > Davanum Srinivas :: http://davanum.wordpress.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-dev-help@ws.apache.org > > -- Chamikara Jayalath WSO2 Inc. http://wso2.com/ http://wso2.org/ - For your Oxygen needs ------=_Part_24052_24334253.1179537607500 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Guys,

Sorry about joining to the conversation late.
I also agree to the point that there could be Node specific properties but dont think it's good to change the Axis2 property handling interface (this will look bad in the non-clustered case). Expression based solution seems to be good. +1 for that.

' "*" means (one or more characters)' looks good enough for me.

Chamikara


On 5/18/07, Davanum Srinivas < davanum@gmail.com> wrote:
Sounds good to me Azeez.
- Should the name(s) be regexp expressions or just a simple "*" means
(one or more characters)?
- So is there a implicit <include name="*">? Should we allow folks to
set includes as well (like in ant tasks). Guess it's an overkill.

thanks,
dims

On 5/18/07, Afkham Azeez <afkham@gmail.com> wrote:
> Great idea Dims.
>
> So under the ContextManager entry in the axis2.xml, we can specify the
> patterns of the property name which have to be excluded from replication.
> e.g.
>
> <ContextManager
> class="org.apache.axis2.cluster.tribes.context.TribesContextManager
> ">
>      <Replication>
>               <Defaults>
>                     <excludes name="foo.bar.*"/>
>                </Defaults>
>               <ConfigContextProperties>
>                    <excludes name="my.sandesha.* "/>
>                    ...
>               </ConfigContextProperties>
>               <ServiceGroupContextProperties>
>                   <excludes name="..."/>
>               </ServiceGroupContextProperties>
>               <ServiceContextProperties>
>                   <excludes name="..."/>
>              </ServiceContextProperties>
>        <Replication>
> </ContextManager>
>
> So any of the context properties matching a particular property will not be
> replicated.
>
> -- Azeez
>
>
> On 5/18/07, Davanum Srinivas <davanum@gmail.com> wrote:
> >
> > Only other thing i can think of is similar to you know the proxy
> > settings...have regexp based includes and excludes (on the key) in the
> > ClusterManager for the default properties we already have and allow
> > API access (and/or axis2.xml entries) for folks to add/delete from the
> > list of includes/excludes. that's that other extreme...
> >
> > -- dims
> >
> > On 5/18/07, Davanum Srinivas <davanum@gmail.com> wrote:
> > > Azeez,
> > >
> > > Did you already rule out a simple solution? If a service author wants
> > > a specific custom property to be available, then they can add a simple
> > > prefix to the key in the Map?
> > >
> > > thanks,
> > > dims
> > >
> > > On 5/18/07, Afkham Azeez < afkham@gmail.com> wrote:
> > > > We have a problem when it comes to replicating properties in our
> clustering
> > > > implementation.  There are some properties which are specific to a
> node,
> > > > specially properties in the ConfigurationContext.  Some properties are
> added
> > > > by different modules such as Sandesha2, Rampart to the
> ConfigurationContext.
> > > > One thing is that these objects are not serializable, and the other
> thing is
> > > > that these properties should not be replicated. Some information which
> are
> > > > specific to a node may be added to the ConfigurationContexts, and
> these
> > > > should never be replicated.
> > > >
> > > > So there should be some way to inform Axis2 about the properties that
> need
> > > > to be clustered and those that shouldn't be clustered.
> > > >
> > > > I suggest we introduce a new Map to AbstractContext called
> > > > clusterableProperties. Stuff that are added to this Map will be
> replicated,
> > > > and the service author/module author has to add the properties that
> need to
> > > > be replicated into the clusterableProperties Map.
> > > >
> > > > Thoughts?
> > > >
> > > > --
> > > > Thanks
> > > > Afkham Azeez
> > > >
> > > > http://www.wso2.org
> > > > GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760
> > >
> > >
> > > --
> > > Davanum Srinivas :: http://davanum.wordpress.com
> > >
> >
> >
> > --
> > Davanum Srinivas :: http://davanum.wordpress.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-dev-help@ws.apache.org
> >
> >
>
>
>
> --
>
> Thanks
> Afkham Azeez
>
> http://www.wso2.org
>  GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760


--
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org




--
Chamikara Jayalath
WSO2 Inc.
http://wso2.com/
http://wso2.org/ - For your Oxygen needs ------=_Part_24052_24334253.1179537607500--