Hi Amila, You understand me correctly. I also have doubts about my idea, though regarding your concerns I can say:
1) authenticated subject could be provided by carbon context 2) they should have same or very similar schema As I mentioned, I'm considering multi-tenancy with EclipseLink or Hibernate, they both provide means to work with single table shared between tenants, or table per tenant. It could be nice if Carbon on its turn would provide model for accessing database per tenant. As I understand now this could be achieved with Carbon Registry for small data, and also with Data Service as a Service, though the latter is still unclear to me. Well, no clear question this time, thank you for your help, appreciate your time, I'm really just researching. Thank you. On Tue, Aug 14, 2012 at 6:30 AM, Amila Maha Arachchi <[email protected]>wrote: > Hi Andriy, > > On Mon, Aug 13, 2012 at 9:44 PM, Andriy Zhdanov <[email protected]>wrote: > >> Hi Sumedha, >> >> First of all thank you for your prompt reply, it took me long to find >> someone to answer :) >> >> Let me ask further. >> >> Right, we can assume stratos live. Then let's say I deploy saas enabled >> carbon application. After it, I understand stratos live tenants login to my >> application but I'd like them to access their data source within my >> application. Does it make sense? Is it possible? >> > > If I understand your requirement correctly, you want your SaaS enabled > application to access the data sources of the tenants who log in to your > app. IMO this does not make sense due to several reasons. > > 1. Different tenants' data sources have different credentials. So you need > to either know them or request them from the tenant (tenants do not have > permission to access other tenants' datasources without the owners > credentials due to the permissions) > 2. You dont know their database schemes. > > If you are talking about accessing tenants' information (is that what you > mean by accessing other tenants datasources), I think it can be done via > the carbon context. AFAIK, carbon context can provide you some information > about the logged in user. > > What you can do is, maintain a datasource by your own in StratosLive Data > Service as a Service to be used in your application. > > Sumedha can correct me if theres something wrong. > > Regards, > Amila. > >> >> Thank you. >> >> >> On Mon, Aug 13, 2012 at 2:47 AM, Sumedha Rubasinghe <[email protected]>wrote: >> >>> >>> >>> On Mon, Aug 13, 2012 at 1:24 AM, Andriy Zhdanov <[email protected]>wrote: >>> >>>> Hi, >>>> >>>> I'm interested in multi-tenant Java SaaS, and in this particular case >>>> I'm learning possibilities with WSO2 PaaS. Could someone please help me to >>>> get better familar with SaaS possibilities of WSO2 carbon platform? >>>> >>> >>> You should be looking @ is http://wso2.com/cloud/stratos/ . >>> >>> >>>> >>>> What I know so far, it is possible to have saas enabled carbon >>>> application, that will allow WSO2 PaaS tenant users login to my >>>> application. I've just learned about CarbonContext and Registry also. >>>> >>>> Questions I have: >>>> >>>> 1) Does CarbonContext represent context of logged in tenant user or >>>> context of tenant service, i.e. my service, and so tenant? >>>> >>>> Refer >>> http://wso2.org/library/articles/2012/03/carbon-context-its-usages-wso2-productsfor >>> an example of how to use CarbonContext. >>> >>>> >>>> 2) Is it possible to access tenant specific data source within saas >>>> enabled carbon applcation? If so, how? E.g. with CarbonContext. >>>> >>> WSO2 RSS (Relational Storage Service) is operating on this space. It >>> allows you to create a database (and a corresponding datastore) with >>> correct permissions, so that only tenant's users having that credential >>> range can access databases created within their tenant. (we are using >>> database engine's (currently MySQL) permission model for this). Read : >>> http://wso2.org/library/articles/2011/09/wso2-unveils-its-relational-storage-solutions-wso2-stratoslive >>> >>> >>>> >>>> 3) I guess Carbon itself uses shared database per tenant, I guess even >>>> shared table. Is it so? If so, is it possible to use the same in carbon >>>> application? >>>> >>> >>> Carbon uses a single database to store all tenant configuration. Data is >>> stored partitioned by tenant's Id. So achieve tenant isolation, we ensure >>> every call to database has tenant id value set. >>> >>> For user level applications, we recommend using a different database. >>> >>> >>>> For better understanding, I'm thinking of something like EclipseLink >>>> @Multitenant with WSO2. >>>> >>>> Thank you. >>>> >>>> _______________________________________________ >>>> User mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/user >>>> >>>> >>> >>> >>> -- >>> /sumedha >>> +94 773017743 >>> >> >> >> _______________________________________________ >> User mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/user >> >> > > > -- > *Amila Maharachchi* > Technical Lead > Member, Management Committee - Cloud & Platform TG > WSO2, Inc.; http://wso2.com > > Blog: http://maharachchi.blogspot.com > Mobile: +94719371446 > > >
_______________________________________________ User mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/user
