*Hey Anshul,To bootstrap a tenant with specific data, you can create separate XML data files for each tenant and register them under tenant-specific data readers in ofbiz-component.xml then use the loadTenant Gradle task to load this data individually for each tenant.On the authentication side, OFBiz sets the tenant's context by associating a delegator (i.e. tenant's database connection object) into the ServletContext.This can be driven by either:*
- *Sending the userTenantId with every request in case of a stateless application, or only once during login for a stateful application.* - *Using tenant-specific subdomains configured via the TenantDomainName entity, OFBiz will automatically identify the tenant behind the scenes.* *You can check more in ContextFilter.java on how it works.* *Thanks!!* On Wed, May 21, 2025 at 10:46 AM Anshul Goyal <[email protected]> wrote: > Dear OFBiz Community, > > I hope this message finds you well. > > I’m following up on an email I sent a couple of days ago regarding best > practices for implementing multi-tenancy in Apache OFBiz, particularly in > the context of integration with an external React application. > > To reiterate, I’m currently working on enabling multi-tenant support in > OFBiz and am seeking recommendations on the most effective approach to: > > - > > Manage tenant-specific data and authentication > - > > Establish secure and scalable communication between the React frontend > and the OFBiz backend. > > Any insights, examples, or guidance from the community on how to approach > this integration would be greatly appreciated. > > Looking forward to your valuable input. > > Best regards > Anshul Goyal > -- *Kind Regards,* *Rohit Koushal | Engineering manager* *HotWax Systems* <http://www.hotwaxsystems.com/> *Plot no. 80, Scheme no. 78 Part 2, Near Brilliant Convention Center, Indore, M.P 452010* *Mobile: 9098461867*
