11-10-2015 05:19 PM
…
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
…
<property name="configurators">
<list>
<bean class="org.activiti.ldap.LDAPConfigurator">
<!– Server connection params –>
<property name="server" value="${ldap.server}"/>
<property name="port" value="${ldap.port}"/>
<property name="user" value="${ldap.username}"/>
<property name="password" value="${ldap.password}"/>
<!– Query params –>
<property name="baseDn" value="${ldap.baseDn}"/>
<property name="queryUserByUserId" value="${ldap.queryUserByUserId}"/>
<property name="queryUserByFullNameLike" value="${ldap.queryUserByFullNameLike}"/>
<property name="queryGroupsForUser" value="${ldap.queryGroupsForUser}"/>
<!– Attribute config –>
<property name="userIdAttribute" value="${ldap.userIdAttribute}"/>
<property name="userFirstNameAttribute" value="${ldap.userFirstNameAttribute}"/>
<property name="userLastNameAttribute" value="${ldap.userLastNameAttribute}"/>
<property name="groupIdAttribute" value="${ldap.groupIdAttribute}"/>
<property name="groupNameAttribute" value="${ldap.groupNameAttribute}"/>
<!– Required for ActiveDirectory –>
<property name="customConnectionParameters">
<map>
<entry key="InitialDirContext" value="Context.REFERRAL"/>
<entry key="com.sun.jndi.ldap.connect.pool" value="${ldap.pool.enable}"/>
<entry key="com.sun.jndi.ldap.connect.pool.initsize" value="${ldap.pool.initsize}"/>
<entry key="com.sun.jndi.ldap.connect.pool.maxsize" value="${ldap.pool.maxsize}"/>
<entry key="com.sun.jndi.ldap.connect.pool.prefsize" value="${ldap.pool.prefsize}"/>
<entry key="com.sun.jndi.ldap.connect.pool.protocol" value="${ldap.pool.protocol}"/>
<entry key="com.sun.jndi.ldap.connect.pool.timeout" value="${ldap.pool.timetoevict}"/>
</map>
</property>
</bean>
</list>
</property>
…
… (some omitted properties)…
# connection pooling
ldap.pool.enable=true
ldap.pool.initsize=2
ldap.pool.maxsize=10
ldap.pool.prefsize=4
ldap.pool.protocol=plain ssl
ldap.pool.timetoevict=180000
11-11-2015 12:15 PM
When the application is finished with a pooled connection (by invoking Context.close() on all contexts that share the connection), the underlying pooled connection is marked as idle, waiting to be reused. By default, idle connections remain in the pool indefinitely until they are garbage-collected. If the "com.sun.jndi.ldap.connect.pool.timeout" System property has been set, the LDAP provider will automatically close and remove pooled connections that have been idle for more than the specified period.
11-11-2015 12:56 PM
03-17-2016 07:06 PM
03-18-2016 09:04 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.