Re: CMIS Server: Pooling CmisService instances

2015-01-30 Thread Florent Guillaume
If an object comes from a pool then calling close() should return it to the pool. So your pool should not return direct CmisService instances, but wrapped versions that intercept close() and makes them go back into the pool. You can implement that easily enough through an InvocationHandler. Floren

CMIS Server: Pooling CmisService instances

2015-01-30 Thread Jochen Kraushaar
Hi, in the CMIS JCR bridge each call to JcrServiceFactory.getService(CallContext) creates a new CmisService instance. As a side effect each request ends up in logging in the user given by the CallContext. When the repository is called rapidly, this leads to performance and load issues. As I