On Tue, Jul 22, 2014 at 5:03 PM, Gayashan Amarasinghe <[email protected]> wrote:
> Hi Dilini, > > Did you deploy the web app as super tenant or a tenant? What are the > server versions you used? > > Method you have used is the proper way to access the tenant Id. > AFAIK you shouldn't use PrivilegedCarbonContext to read information. It is used to write stuffs to the carbon context. > However as Malintha has mentioned, there are some bugs when certain > super-tenant related tasks are logged, which has not been observed for > tenant-wise tasks. This bug will be fixed with 4.3 release. > > Thanks. > > /Gayashan > > > On Tue, Jul 22, 2014 at 3:29 PM, Dilini Muthumala <[email protected]> wrote: > >> Hi, >> >> Would like to know, how to $subject. >> >> I tired with, >> PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(); >> >> which returned -1, as the tenant id. >> >> Thanks, >> Dilini >> >> -- >> *Dilini Muthumala* >> Software Engineer, >> WSO2 Inc. >> >> *E-mail :* [email protected] >> *Mobile: *+94713 400 029 >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Gayashan Amarasinghe* > Software Engineer | Platform TG > WSO2, Inc. | http://wso2.com > lean. enterprise. middleware > > Mobile : +94718314517 > Blog : gayashan-a.blogspot.com > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Asanka DissanayakeSoftware Engineer* *WSO2 Inc. - lean . enterprise . middleware | wso2.com <http://wso2.com/>* *email: [email protected] <[email protected]>, blog: cyberwaadiya.blogspot.com <http://cyberwaadiya.blogspot.com>, asankastechtalks.wordpress.com <http://asankastechtalks.wordpress.com> mobile: +94 71 8373821*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
