JMX monitoring for LDAP pool
I plan to use pooled LdapContextSource, however I would like to monitor the pool (connection used etc.). I can expose MBean- JMX to do that, but I don’t know where to get the pooling details, like the number of active connections etc.
<beans:bean id="contextSourceTarget"
class="org.springframework.ldap.core.support.LdapC ontextSource">
<beans:property name="url" value="ldap://spogtamldap-ro:389" />
<beans:property name="userDn"
value="uid=tcserver-ro,ou=applications,dc=ironmountain,dc=com" />
<beans:property name="password" value="${TAM.LDAP.password}" />
<property name="dirObjectFactory" value="org.springframework.ldap.core.support.Defau ltDirObjectFactory" />
<property name="pooled" value="true" />
</beans:bean>
I tried using org.springframework.ldap.pool.factory.PoolingConte xtSource and exposing it through Mban, but I am running into several other issues with PoolingContextSource. Does anyone know a good way to get those details?