Noted Sanjiva. I will include slides on Stratos APIs, specially user
management, registry/repository, CarbonContext API, Caching, Clustering API
etc.


Matteo, you can leverage a bunch Stratos level APIs to build your
multi-tenant SaaS app. Here are some the available APIs. Let us know your
requirements.

Identity and Security API  -  Manage users, roles, permission,
authentication and authorization functionalities
Registry/Repository API -  crud api for repository.
Caching API - Java caching API
CarbonContext API  - CarbonContext is the entity which provides the runtime
related contextual information of the current executing thread. Any code
running in Stratos can retrieve following information from the
CarbonContext API.

1) Tenant information who is executing the code.
2) Logged in user information, if any.
3) Application information, if any.

Thanks,
Sameera.


On Sat, Jun 14, 2014 at 7:38 AM, Sanjiva Weerawarana <sanj...@wso2.com>
wrote:

> Imesh IMO your answer is not correct :-). Stratos has a set of APIs that
> allows a super tenant app to be an multi-tenant SaaS app - for example the
> admin app is written like that. What Matteo is asking is how to use Stratos
> as the foundation of a SaaS application!
>
> Sameera you're giving a talk on this at WSO2Con next week in Barcelona
> :-). Maybe you can answer and then share the slides after.
>
> Cheers,
>
> Sanjiva.
>
>
> On Thu, Jun 12, 2014 at 8:13 PM, Matteo Cusmai <cusmaimat...@gmail.com>
> wrote:
>
>> Hi Imesh,
>> thanks a lot for the answer and for the useful links.
>>
>> However, I know a bit WSO2 and I know it provides useful capabilities to
>> develop a multi tenant application.
>> But suppose that I cannot use it, how can I retrieve tenant information
>> from my java code?
>>
>>
>> Matteo Cusmai
>>
>>
>> On Thu, Jun 12, 2014 at 4:38 PM, Imesh Gunaratne <im...@apache.org>
>> wrote:
>>
>>> Hi Matteo,
>>>
>>> According to Stratos architecture there are no requirements for using
>>> certain APIs/libraries for developing applications. It's completely loosely
>>> coupled. Applications can be developed according to the requirements of the
>>> cartridge they run on.
>>>
>>> If you are looking at developing a Multi-Tenant application, AFAIK
>>> Tomcat does not provide Multi-Tenancy features out of the box. However you
>>> could use Carbon framework [1] for that. Yes I could see JBoss/Hibernate
>>> also provide Multi-Tenancy features [2].
>>>
>>> [1]
>>> http://wso2.com/library/blog-post/2013/09/creating-a-saas-app-with-the-multi-tenant-carbon-framework-step-1/
>>> [2] https://community.jboss.org/wiki/Multi-tenancyDesign
>>>
>>> Thanks
>>>
>>>
>>> On Thu, Jun 12, 2014 at 11:33 AM, Matteo Cusmai <cusmaimat...@gmail.com>
>>> wrote:
>>>
>>>> Hi all,
>>>> I am going to develop a java saas application, and I would like to use
>>>> stratos with tomcat, or jboss after have developed a jboss cartdrige.
>>>>
>>>> Which are the java api/lib that I have to use in order to develop a
>>>> multi tenant application?
>>>>
>>>> Thanks in advance,
>>>> Matteo.
>>>>
>>>
>>>
>>>
>>> --
>>> Imesh Gunaratne
>>>
>>> Technical Lead, WSO2
>>> Committer & PPMC Member, Apache Stratos
>>>
>>
>>
>
>
> --
> Sanjiva Weerawarana, Ph.D.
> Founder, Chairman & CEO; WSO2, Inc.;  http://wso2.com/
> email: sanj...@wso2.com; office: (+1 650 745 4499 | +94  11 214 5345)
> x5700; cell: +94 77 787 6880 | +1 408 466 5099; voip: +1 650 265 8311
> blog: http://sanjiva.weerawarana.org/; twitter: @sanjiva
> Lean . Enterprise . Middleware
>



-- 
Sameera Jayasoma

blog: https://blog.sameera.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/

Reply via email to