Hi Justin, Straight and simple answer (I trust):
The tenandId used by the user loggin into the system is used by the OFBiz system as the delegatorId. This delegatorId is then used (amongst others) by the underlying services regarding the entity engine as the differentiator for executing CRUD functions to the right database. Best regards, Pierre Smits ORRTIZ.COM <http://www.orrtiz.com> OFBiz based solutions & services OFBiz Extensions Marketplace http://oem.ofbizci.net/oci-2/ On Wed, Jul 20, 2016 at 6:38 AM, Justin Robinson < [email protected]> wrote: > I am trying to understand the database connection pooling in ofbiz 14, > which uses dbcp2. > > In the class org.ofbiz.entity.connection.DBCPConnectionFactory there is a > static ConcurrentHashMap which provides a ManagedDataSource for each > tenant. > > But when it comes to obtaining a transaction manager reference, it looks > like there is one global instance for all tenants. > > getTransactionManager in org.ofbiz.geronimo.GeronimoTransactionFactory > returns the static reference to a single GeronimoTransactionManager. > > In multi tenant testing overlapping from different tenants seem like they > interact with eachother. > > Can you explain how the implementation is supposed to work in with multi > tenancy ? >
