Re: Is a single GeronimoTransactionManager shared between all tenants in a multi-tenant setup?

2016-07-21 Thread Jacopo Cappellato
I am glad to hear you have at least a plan of action and you can move on. Good luck Jacopo On Thu, Jul 21, 2016 at 9:16 AM, Justin Robinson < ofbiz-10.04-downst...@fluidnotions.com> wrote: > It was a chicken egg case. The transaction manger wasn't the problem. But I > am getting time outs now

Re: Is a single GeronimoTransactionManager shared between all tenants in a multi-tenant setup?

2016-07-21 Thread Justin Robinson
It was a chicken egg case. The transaction manger wasn't the problem. But I am getting time outs now with tomcat nio exec threads being blocked in UtilCache and CachedClassloader those are major synchronization bottle necks but I have already updated then both to ofbiz 14. Anyway I suppose I

Re: Is a single GeronimoTransactionManager shared between all tenants in a multi-tenant setup?

2016-07-20 Thread Jacopo Cappellato
Is it possible that your code is creating EntityListIterator objects and not properly closing them? This may cause connections to stay open until the SqlProcessor objects are finalized. My guess is that the connection leaks are happening before the finalization, and not as a consequence of it,

Re: Is a single GeronimoTransactionManager shared between all tenants in a multi-tenant setup?

2016-07-20 Thread Jacopo Cappellato
Hi Justin, On Wed, Jul 20, 2016 at 12:37 PM, Justin Robinson < ofbiz-10.04-downst...@fluidnotions.com> wrote: > I am really just interested in the architecture, it's no so much an issue > with any version of ofbiz. (In fact I am working on a system based on > ofbiz, it would be better to replace

Re: Is a single GeronimoTransactionManager shared between all tenants in a multi-tenant setup?

2016-07-20 Thread Justin Robinson
I am really just interested in the architecture, it's no so much an issue with any version of ofbiz. (In fact I am working on a system based on ofbiz, it would be better to replace it with pure ofbiz, but that is not my decision to make). I hope you will still be willing to discuss your

Re: Is a single GeronimoTransactionManager shared between all tenants in a multi-tenant setup?

2016-07-20 Thread Jacopo Cappellato
Hi Justin, your understanding of the class implementation is correct and there may be a chance that some code may need to be improved, but I am not sure as I could only give a cursory look at the code. By the way, I see that the code in GeronimoTransactionManager calls a "tenant-aware" method in

Re: Is a single GeronimoTransactionManager shared between all tenants in a multi-tenant setup?

2016-07-20 Thread Pierre Smits
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

Is a single GeronimoTransactionManager shared between all tenants in a multi-tenant setup?

2016-07-19 Thread Justin Robinson
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