Hi Priyadarssini, This can be happened when tenants were not initialize at the time you called the above code .
On Tue, May 12, 2015 at 10:45 AM, Priyadarssini Kishokumar < [email protected]> wrote: > Hi, > > I need to get tenant id in the mediation initializer . When I'm trying to > get it through > "PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId()", it > always returning -1. What is the correct way to get tenant details in > initializer? > > -- > Priya Kishok > Software Engineer > WSO2, Inc : http://wso2.com > Mob : +94774457404 > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Best Regards Isuru Ranawaka M: +94714629880 Blog : http://isurur.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
