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 ?

Reply via email to