Hi Ajith,
On Sep 5, 2012 12:24 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

I'll try to implement an admin service with the above code segment and try
to use it from Dev Studio.

Thanks and Regards,
Harshana
>
>>
>>
>> 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

Reply via email to