Hi, How if we obtain super tenant carbon context and then get TenantManager. if you have tenant manager then you can do same.
Thanks. On Tue, Sep 4, 2012 at 11:54 AM, Ajith Vitharana <[email protected]> wrote: > > > On Tue, Sep 4, 2012 at 11:53 PM, Harshana Martin <[email protected]>wrote: > >> Hi All, >> >> Can someone explain $Subject? >> >> We need to get the Tenant Id for C-App deployment to Servers from Dev >> Studio. Now that servers running in Service mode, C-App deployment also has >> to be tenant specific. Therefore we need this. >> >> Is there any existing Admin Service we can reuse? If yes, can someone >> point it to me? >> > > Hi Harshana, > > AFAIK We don't expose (to outside ) tenant id using such a Admin Service. > However, you can get the tenant id using the RealmService (OSGI service). > > int tenantId = realmService.getTenantManager().getTenantId(tenantDomain); > > Thanks > Ajithn > > >> >> Thanks and Regards, >> Harshana >> -- >> Harshana Martin >> Senior Software Engineer >> Member, Management Committee - Development Technologies >> WSO2 Inc. : http://wso2.com ; http://wso2.org >> Mobile: +94 775 998 115 >> Profile: https://www.google.com/profiles/harshana05 >> Blog: http://harshana05.blogspot.com >> Twitter: http://twitter.com/harshana05 >> >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Ajith Vitharana. > WSO2 Inc. - http://wso2.org > Email : [email protected] > Mobile : +94714631794 > > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +14084122715 | +94713068779 <http://sanjeewamalalgoda.blogspot.com/>blog :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
