Hi Supun,

CarbonContext will not just give you what you want. Somebody needs to first
populate that with what it can return back. Now you can go have a look on
who populates these fields, and you should be able to find the cause for
this being null.

Thanks,
Senaka.

On Thu, May 31, 2012 at 12:03 PM, Supun Malinga <[email protected]> wrote:

> Hi Senaka,
>
> Any idea on this?
> I do get valid objects when I query for  config reg., gov. reg. in same
> method.
> eg:* 
> *SuperTenantCarbonContext.getCurrentContext(axisConfig).getRegistry(RegistryType.USER_GOVERNANCE)
> works fine.
>
> thanks,
>
> On Thu, May 31, 2012 at 8:55 AM, Supun Malinga <[email protected]> wrote:
>
>> Hi devs,
>>
>> How to do $subject using axisConfig. ?
>> I tried,
>> *
>> SuperTenantCarbonContext.getCurrentContext(axisConfig).getRegistry(RegistryType.LOCAL_REPOSITORY)
>> *
>> but this always return null for tenants other than super tenant.
>>
>> Whats the correct and accurate way to handle this.?
>>
>> thanks,
>> --
>> Supun Malinga,
>>
>> Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>> email - [email protected] <[email protected]>
>> mobile - 071 56 91 321
>>
>>
>
>
> --
> Supun Malinga,
>
> Software Engineer,
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
> email - [email protected] <[email protected]>
> mobile - 071 56 91 321
>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to