Correction to point 8. Now, T2 replaces the delegator and T1 gets the delegator of T2
On Tue, Dec 24, 2013 at 2:43 PM, Deepak Agarwal <[email protected]>wrote: > To explain it further, we have one component designed and we call it > controlpanel. By creating multi tenants we are allowing them to use this > component (along with other default components ofbiz provides). > We were assuming that each request gets it's delegator and dispatcher set > from ContextFilter and thereof each tenant was supposed to access it's own > data. But, this is not what's happening. Once a tenant T1 gets logged in > it sets the delegator default#T1 in the servletContext and since > ServletContext is application wide so delegators keep getting replaced > application wide. > > > > On Tue, Dec 24, 2013 at 12:41 PM, Deepak Agarwal < > [email protected]> wrote: > >> Try following steps: >> 1) Create 2 tenant T1 and T2 >> 2) Map T1 with t1.xyz.com >> 3) Map T2 with t2.xyz.com >> 4) Have an entry of t1.xyz.com and t2.xyz.com in your hosts file to >> point to your ofbiz instance >> 5) open t1.xyz.com/webtools >> 6) Login >> 7) Now open t2.xyz.com/webtools from either different browser or same >> browser >> 8) It picks up the T1 delegator because it was set in the ServletContext >> which is application wide. >> >> >> On Tue, Dec 24, 2013 at 6:25 AM, Lawrence Liu <[email protected]>wrote: >> >>> It also works fine on myside using different tabs in chrome. >>> 2013-12-24 上午3:05于 "Deepak Agarwal" <[email protected]>写道: >>> >>> > Hello, >>> > >>> > ContextFilter sets the delegator in ServletContext and therefore >>> whichever >>> > tenant gets login first, remains the boss and all of the other tenants >>> gets >>> > that delegator only. >>> > >>> > Should delegator, security and authz not be set at session level only? >>> > >>> > -- >>> > Thanks, >>> > Deepak Agarwal, >>> > >>> > Mobile: +91 9501190044 >>> > >>> >> >> >> >> -- >> Thanks, >> Deepak Agarwal, >> >> Paxcel Technologies Pvt Ltd. >> Hartron Complex, Sector 18, Gurgaon, India. >> E-Mail: [email protected] >> Mobile: +91 9501190044 >> > > > > -- > Thanks, > Deepak Agarwal, > > Paxcel Technologies Pvt Ltd. > Hartron Complex, Sector 18, Gurgaon, India. > E-Mail: [email protected] > Mobile: +91 9501190044 > -- Thanks, Deepak Agarwal, Paxcel Technologies Pvt Ltd. Hartron Complex, Sector 18, Gurgaon, India. E-Mail: [email protected] Mobile: +91 9501190044
