This content has been marked as final. Show 1 reply
Or when repository.login(...) in the service-method is called?
The connection should be taken when login() is called, you can verify this by looking at the implementation.
When is the connection released and returned to the pool? (When session-logout is called or when the transaction is committed or ... ?)
It should be when session.logou() is called, I would recommend to check the RA implementation from JackRabbit.
Is it possible, that during a service-method more than one connection may be used?
Any hints and references are really appreciated.
I can't make out from the methods calls that multiple connections are being used in the application flow.
You can also look at the ManagedConnectionPool MBean from the jmx-console to see the evolution of the connections in the pool.