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> 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> 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>> 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>> 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>>> 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>>> 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>> >> > > 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 >> > > >> > > >> > > >> > > >> > > -- >> > > Senaka Fernando >> > > Software Engineer >> > > WSO2 Inc. >> > > E-mail: 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>> >> > > 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 >> > > >> > >> ------------------------------------------------------------------------ >> > > >> > > _______________________________________________ >> > > 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 >> > >> > >> > >> > >> > -- >> > -- >> > 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 >> > 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; 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 >> > > > > -- > -- > > Afkham Azeez > az...@wso2.com > WSO2 Inc. http://wso2.com > Blog: http://afkham.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