On Thu, Mar 29, 2018 at 3:54 PM, Sajith Abeywardhana <sajith...@gmail.com> wrote:
> Hi Mohan, > > > > Hi Devs, >>> >>> How can I call the tenant specific wso2event receiver endpoint in the >>> DAS-3.1.0 from the EI event sink? >>> >>> I can call the HTTP event receiver endpoint in the DAS like this[1] from >>> the EI if the tenant is abc.com >>> >>> I need to do the same via the event sink by using wso2event receiver in >>> DAS side. Is this achievable? >>> >> >> If you are using super tenant credentials to publish events to WSO2Event >> receiver then events goes to tenant space in DAS. >> > > Thanks. It works as expected. I guess you means "tenant admin credentials" > rather than "super tenant credentials" in here. > Yes, sorry about the confusion. > > >> IMO, if possible it would be good to process events in super-tenant space >> and use some unique ID (in the event) to segregate the data in tenant >> specific manner. Check [1] for reference. >> > > If I go with different data stores for different tenant than having tenant > id in the each stream will there be any issues when it comes to multi > tenancy? > OK, if you want to use different data-store for each tenant then my solution would not be ideal. > > > >> >> [1] https://github.com/wso2/analytics-is/blob/master/feature >> s/org.wso2.analytics.is.feature/src/main/capp/realtime >> /AuthenticationAnalyticsExecutionPlan/IsAnalytics-ExecutionP >> lan-AuthenticationData.siddhiql#L61 >> >> Thanks, >> Mohan >> >> >> >>> >>> >>> >>> *[1]http://<DAS-IP>:<PORT>/endpoints/t/abc.com/temp-receiver >>> <http://abc.com/temp-receiver> * >>> Thanks, >>> Sajith. >>> >>> >> >> > In the DAS event publishers, how can I append the current tenant id or > tenant domain as a header parameter dynamically when I call the external > API. I know under "Dynamic Adapter Properties" I can hard cored[1] the > tenant domain or id but I need to add this as a dynamic header value so > that I can deploy same car app for all tenants. > Yes, if attribute name is "tenantDomain" and available in event then you can follow below approach to make it dynamic. Content-Type:application/json,X-Tenant:{{tenantDomain}} specify the attribute name with in {{...}} . Thanks, Mohan > > [1] > > > > Thanks, > Sajith. > -- *V. Mohanadarshan* *Technical Lead,* *Data Technologies Team,* *WSO2, Inc. http://wso2.com <http://wso2.com> * *lean.enterprise.middleware.* email: mo...@wso2.com phone:(+94) 771117673
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev