Please do this if you want to access the registry in a proper manner, within
an Admin service in a component, in a multitenant deployment;

this.axisConfig = getAxisConfig();
this.registry = (UserRegistry)
axisConfig.getParameterValue(WSO2Constants.REGISTRY_INSTANCE);

The getAxisConfig() method is inherited from AbstractAdmin

-- 
--
Afkham Azeez
[email protected]
WSO2 Inc. http://wso2.com
Blog: http://afkham.org
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to