Hi Samisa,

I was able to resolve this issue with the help of Senaka and Waruna. The
issue was that at bundle startup time the tenant registries not yet been
loaded. Loading tenant registries explicitly using TenantRegistryLoader
service before accessing resolves this issue. Since this operation can
become bulky I have made this operation run in a separate thread so that it
won't block the server startup.

Regards
Buddhika

On Tue, Oct 18, 2011 at 4:14 PM, Samisa Abeysinghe <[email protected]> wrote:

> Did you manage to solve this issue? If not, can anyone help?
>
> On Mon, Oct 17, 2011 at 12:45 PM, Buddhika Chamith <[email protected]>wrote:
>
>> Hi,
>>
>> I am storing some configurations in the tenant registry while logged in as
>> the tenant. At the bundle start up time it is required to fetch this
>> configuration from each tenant registry and schedule a tenant specific task.
>> But I am unable to do this because the registry instance returned from
>> "registryService.getConfigSystemRegistry(tenantId)" call returns null when
>> trying to fetch the resource stored earlier as the tenant. However I am able
>> to get this resource correctly when I try to do this while logged in as the
>> tenant. Is there any restriction for accessing tenant registries at bundle
>> startup time (running as super tenant) ?
>>
>> Regards
>> Buddhika
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>> Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to