Ruwan, every tenant gets its own CC .. and in fact its own AxisConfig right Azeez?
Sanjiva. On Mon, Dec 21, 2009 at 7:31 AM, Ruwan Linton <ru...@wso2.com> wrote: > Sanjiva Weerawarana wrote: > > Right, so only the config needs to be cloned .. which should be easy (?). > Hhhmm, I guess there is more to that.... Well, the answer is Yes, if we > modify the state full modules like caching and throttling to be aware of > the tenant. We use the ConfigurationContext to keep the state and > assuming that the tenant is not getting its own ConfigurationContext we > need to make the modules aware of the tenants. > > BTW: for a given message dispatched into the tenant is there anyway of > getting the tenant id or something unique for the tenant to which this > message is dispatched to?? > > Thanks, > Ruwan > > > > Sanjiva. > > > > On Sun, Dec 20, 2009 at 11:50 PM, Afkham Azeez <az...@wso2.com > > <mailto:az...@wso2.com>> wrote: > > > > In other words, yes, handlers and modules are stateless, but their > > configurations can differ from tenant to tenant. > > > > Azeez > > > > > > On Sun, Dec 20, 2009 at 11:45 PM, Afkham Azeez <az...@wso2.com > > <mailto:az...@wso2.com>> wrote: > > > > The tenants can mess with things such as module parameters and > > policies in a way that it affects everybody. > > > > Azeez > > > > > > On Sun, Dec 20, 2009 at 10:20 PM, Sanjiva Weerawarana > > <sanj...@wso2.com <mailto:sanj...@wso2.com>> wrote: > > > > Why? Handlers and modules are all stateless. Every tenant > > can use the same object with no problem right?? > > > > Sanjiva. > > > > > > On Sun, Dec 20, 2009 at 5:01 PM, Afkham Azeez > > <az...@wso2.com <mailto:az...@wso2.com>> wrote: > > > > Ruwan, > > You are right. Handlers also need to be cloned. > > Otherwise, the tenants can mess with the handlers > > which can affect the main AxisConfiguration as well. > > So the easiest way is to programatically deploy these > > modules within each of the tenant AxisConfigurations. > > > > Azeez > > > > > > On Sun, Dec 20, 2009 at 4:38 PM, Ruwan Linton > > <ru...@wso2.com <mailto:ru...@wso2.com>> wrote: > > > > Afkham Azeez wrote: > > > We do not require cloning of the > > org.apache.axis2.modules.Module > > > implementation. Only need to > > > clone, org.apache.axis2.description.AxisModule > > I see, so you do not need to clone the handlers > > associated with that > > module and so forth?? In that case I think you can > > write a fairly simple > > logic to clone the description. > > > > Thanks, > > Ruwan > > > > > > Azeez > > > > > > On Sun, Dec 20, 2009 at 4:24 PM, Afkham Azeez > > <az...@wso2.com <mailto:az...@wso2.com> > > > <mailto:az...@wso2.com <mailto:az...@wso2.com>>> > > wrote: > > > > > > Should the cloning logic be module specific? > > Won't it suffice if > > > we implement cloning in the AxisModule class > > alone? > > > > > > Azeez > > > > > > > > > On Sun, Dec 20, 2009 at 4:20 PM, Ruwan > > Linton <ru...@wso2.com <mailto:ru...@wso2.com> > > > <mailto:ru...@wso2.com > > <mailto:ru...@wso2.com>>> wrote: > > > > > > I don't think we can clone axis2 modules > > that easily, if we > > > are to do so > > > we need to write the logic in cloning a > > module and we might > > > not be able > > > to do cloning unless the modules has > > been written in a > > > clonable manner. :-( > > > > > > Thanks, > > > Ruwan > > > > > > Afkham Azeez wrote: > > > > That is possible, but inefficient. If > > there a x number of > > > modules, and > > > > there are n number of tenants, (n+1)*x > > number of times the > > > module.xml > > > > file will have to be parsed and the > > AxisModule needs to be > > > built. If > > > > we can clone it, once we have crated > > an AxisModule instance, > > > it will > > > > be much more efficient. > > > > > > > > Azeez > > > > > > > > On Sun, Dec 20, 2009 at 3:14 PM, > > Senaka Fernando > > > <sen...@wso2.com > > <mailto:sen...@wso2.com> <mailto:sen...@wso2.com > > <mailto:sen...@wso2.com>> > > > > <mailto:sen...@wso2.com > > <mailto:sen...@wso2.com> <mailto:sen...@wso2.com > > <mailto:sen...@wso2.com>>>> wrote: > > > > > > > > Azeez, > > > > > > > > Can't we initialize multiple > > instances of the same module? I > > > > believe that this is possible. > > > > > > > > Thanks, > > > > Senaka. > > > > > > > > On Sun, Dec 20, 2009 at 2:56 PM, > > Afkham Azeez > > > <az...@wso2.com <mailto:az...@wso2.com> > > <mailto:az...@wso2.com <mailto:az...@wso2.com>> > > > > <mailto:az...@wso2.com > > <mailto:az...@wso2.com> <mailto:az...@wso2.com > > <mailto:az...@wso2.com>>>> wrote: > > > > > > > > Hi folks, > > > > Has anybody done $subject? For > > the multitenant admin > > > console > > > > funtionality, I need to clone > > some of the modules > > > (cahing, > > > > throttling, tracer etc) and > > add them to the tenant > > > > AxisConfigurations. > > > > > > > > -- > > > > -- > > > > Afkham Azeez > > > > az...@wso2.com > > <mailto:az...@wso2.com> <mailto:az...@wso2.com > > <mailto:az...@wso2.com>> > > > <mailto:az...@wso2.com > > <mailto:az...@wso2.com> <mailto:az...@wso2.com > > <mailto:az...@wso2.com>>> > > > > WSO2 Inc. http://wso2.com > > > > Blog: http://afkham.org > > > > > > > > > > _______________________________________________ > > > > Carbon-dev mailing list > > > > Carbon-dev@wso2.org > > <mailto:Carbon-dev@wso2.org> > > <mailto:Carbon-dev@wso2.org > > <mailto:Carbon-dev@wso2.org>> > > > <mailto:Carbon-dev@wso2.org > > <mailto:Carbon-dev@wso2.org> > > <mailto:Carbon-dev@wso2.org > > <mailto:Carbon-dev@wso2.org>>> > > > > > > > > > > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > > > > > > > > > > > > > > > > > -- > > > > Senaka Fernando > > > > Software Engineer > > > > WSO2 Inc. > > > > E-mail: sen...@wso2.com > > <mailto:sen...@wso2.com> <mailto:sen...@wso2.com > > <mailto:sen...@wso2.com>> > > > <mailto:sen...@wso2.com > > <mailto:sen...@wso2.com> <mailto:sen...@wso2.com > > <mailto:sen...@wso2.com>>>; Mobile: +94 77 > > > > 322 1818 > > > > > > > > > > > > http://www.wso2.com/ - "The Open > > Source SOA Company" > > > > > > > > > > _______________________________________________ > > > > Carbon-dev mailing list > > > > Carbon-dev@wso2.org > > <mailto:Carbon-dev@wso2.org> > > <mailto:Carbon-dev@wso2.org > > <mailto:Carbon-dev@wso2.org>> > > > <mailto:Carbon-dev@wso2.org > > <mailto:Carbon-dev@wso2.org> > > <mailto:Carbon-dev@wso2.org > > <mailto:Carbon-dev@wso2.org>>> > > > > > > > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > > > > > > > > > > > > > > > > > -- > > > > -- > > > > Afkham Azeez > > > > az...@wso2.com <mailto:az...@wso2.com> > > <mailto:az...@wso2.com <mailto:az...@wso2.com>> > > > <mailto:az...@wso2.com > > <mailto:az...@wso2.com> <mailto:az...@wso2.com > > <mailto:az...@wso2.com>>> > > > > WSO2 Inc. http://wso2.com > > > > Blog: http://afkham.org > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > _______________________________________________ > > > > Carbon-dev mailing list > > > > Carbon-dev@wso2.org > > <mailto:Carbon-dev@wso2.org> > > <mailto:Carbon-dev@wso2.org > > <mailto:Carbon-dev@wso2.org>> > > > > > > > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > > > > > > > > > > -- > > > Ruwan Linton > > > Technical Lead & Product Manager; WSO2 > > ESB; http://wso2.org/esb > > > WSO2 <http://wso2.org/esbWSO2> Inc.; > > http://wso2.org > > > email: ru...@wso2.com > > <mailto:ru...@wso2.com> <mailto:ru...@wso2.com > > <mailto:ru...@wso2.com>>; cell: +94 77 > > > 341 3097 > > > blog: http://blog.ruwan.org > > > > > > > > > > > > > > _______________________________________________ > > > Carbon-dev mailing list > > > Carbon-dev@wso2.org > > <mailto:Carbon-dev@wso2.org> > > <mailto:Carbon-dev@wso2.org > > <mailto:Carbon-dev@wso2.org>> > > > > > > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > > > > > > > > > > > > -- > > > -- > > > > > > Afkham Azeez > > > az...@wso2.com <mailto:az...@wso2.com> > > <mailto:az...@wso2.com <mailto:az...@wso2.com>> > > > WSO2 Inc. http://wso2.com > > > Blog: http://afkham.org > > > > > > > > > > > > > > > -- > > > -- > > > Afkham Azeez > > > az...@wso2.com <mailto:az...@wso2.com> > > <mailto:az...@wso2.com <mailto:az...@wso2.com>> > > > WSO2 Inc. http://wso2.com > > > Blog: http://afkham.org > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Carbon-dev mailing list > > > Carbon-dev@wso2.org <mailto:Carbon-dev@wso2.org> > > > > > > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > > > > > > -- > > Ruwan Linton > > Technical Lead & Product Manager; WSO2 ESB; > > http://wso2.org/esb > > WSO2 <http://wso2.org/esbWSO2> Inc.; http://wso2.org > > email: ru...@wso2.com <mailto:ru...@wso2.com>; > > cell: +94 77 341 3097 > > blog: http://blog.ruwan.org > > > > > > > > _______________________________________________ > > Carbon-dev mailing list > > Carbon-dev@wso2.org <mailto:Carbon-dev@wso2.org> > > > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > > > > > > > -- > > -- > > > > Afkham Azeez > > az...@wso2.com <mailto:az...@wso2.com> > > WSO2 Inc. http://wso2.com > > Blog: http://afkham.org > > > > _______________________________________________ > > Carbon-dev mailing list > > Carbon-dev@wso2.org <mailto:Carbon-dev@wso2.org> > > > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > > > > > > > -- > > Sanjiva Weerawarana, Ph.D. > > > > Founder, Chairman & CEO; WSO2, Inc.; http://wso2.com/ > > email: sanj...@wso2.com <mailto:sanj...@wso2.com>; phone: > > +1 408 754 7388 x51726; cell: +94 77 787 6880 > > blog: http://sanjiva.weerawarana.org/ > > > > The Open Source SOA Company > > > > _______________________________________________ > > Carbon-dev mailing list > > Carbon-dev@wso2.org <mailto:Carbon-dev@wso2.org> > > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > > > > > > > -- > > -- > > Afkham Azeez > > az...@wso2.com <mailto:az...@wso2.com> > > WSO2 Inc. http://wso2.com > > Blog: http://afkham.org > > > > > > > > > > -- > > -- > > Afkham Azeez > > az...@wso2.com <mailto:az...@wso2.com> > > WSO2 Inc. http://wso2.com > > Blog: http://afkham.org > > > > _______________________________________________ > > Carbon-dev mailing list > > Carbon-dev@wso2.org <mailto:Carbon-dev@wso2.org> > > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > > > > > > > -- > > Sanjiva Weerawarana, Ph.D. > > Founder, Chairman & CEO; WSO2, Inc.; http://wso2.com/ > > email: sanj...@wso2.com <mailto:sanj...@wso2.com>; phone: +1 408 754 > > 7388 x51726; cell: +94 77 787 6880 > > blog: http://sanjiva.weerawarana.org/ > > > > The Open Source SOA Company > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Carbon-dev mailing list > > Carbon-dev@wso2.org > > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > > -- > Ruwan Linton > Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb > WSO2 Inc.; http://wso2.org > email: ru...@wso2.com; cell: +94 77 341 3097 > blog: http://blog.ruwan.org > > > > _______________________________________________ > Carbon-dev mailing list > Carbon-dev@wso2.org > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > -- Sanjiva Weerawarana, Ph.D. Founder, Chairman & CEO; WSO2, Inc.; http://wso2.com/ email: sanj...@wso2.com; phone: +1 408 754 7388 x51726; cell: +94 77 787 6880 blog: http://sanjiva.weerawarana.org/ The Open Source SOA Company
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev