Hi Sanjeewa, On Sep 5, 2012 12:36 AM, "Sanjeewa Malalgoda" <sanje...@wso2.com> wrote: > > Hi, > How if we obtain super tenant carbon context and then get TenantManager. > if you have tenant manager then you can do same.
Is there a way to get the super tenants carbon context outside of a carbon server? We need to get it outside of server since we need this information to be accessible to Dev Studio. Thanks and Regards, Harshana > > Thanks. > > > On Tue, Sep 4, 2012 at 11:54 AM, Ajith Vitharana <aji...@wso2.com> wrote: >> >> >> >> On Tue, Sep 4, 2012 at 11:53 PM, Harshana Martin <harsh...@wso2.com> 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 >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >> >> >> >> -- >> Ajith Vitharana. >> WSO2 Inc. - http://wso2.org >> Email : aji...@wso2.com >> Mobile : +94714631794 >> >> >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> > > > > -- > Sanjeewa Malalgoda > WSO2 Inc. > Mobile : +14084122715 | +94713068779 > > blog :http://sanjeewamalalgoda.blogspot.com/ >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev