Hi Ratha, I'm not sure how data sources come into the picture of looking up APIs from registry. But anyways, looking up a data source is not bound to a specific user, it is simply, you need to be in the correct tenant flow. So if you have the tenant id of the target tenant, you can just start the tenant flow with that specific tenant, lookup the data source, either via JNDI or the data sources OSGi service, and end the tenant flow.
Cheers, Anjana. On Fri, May 17, 2013 at 12:09 PM, Vijayaratha Vijayasingam <[email protected]>wrote: > Hi all; > > We are facing a serious issue with a public space which is available for > all tenants. What we try to achieve is; > At the store end, when an user hits the store url( > https://localhost:9443/store), we try to show all available publicAPIs, > which are belongs to all tenants. > Currently, we don't have publicSpace , which is common to all > tenants(including supertenant), concept. > We have supertenant/tenant concept only. > > To show all public APIs, we do an iteration for all tenants (it is a perf > issue) to pick the publicAPIs. > At that time, we call registry[1] with "Anonymous User" (because we are > not logged in to the system) with tenantID. > > [1] registry = ServiceReferenceHolder.getInstance(). getRegistryServ > ice().getGovernanceUserRegistry(CarbonConstants.REGISTRY_ANO > NNYMOUS_USERNAME, tenantID); > > > This "Anonymous User" have some permissions, which are not enough to > handle the datasource lookup. According to Anjana, we need supertenant's > permission to access the datasource. > > Is it right , if we fix the datasource access model, to allow others also > to do lookup? > We might need to apply the public space concept to our global APIstore + > MT APIStore. > > How should we fix this issue? > > p.s: the actual issue what we are facing currently is discussed in the > dev@Subject; > *javax.naming.NameNotFoundException: Name [jdbc/WSO2UM1] is not bound in > this Context. Unable to find [jdbc]* > > Thanks, > -- > -Ratha > mobile: (+94)755906608 > -- *Anjana Fernando* Associate Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
