> I have noticed that even though it opens a connection each time 
> getPeopleForQuery() is called it never seems to close these connections. Am I 
> missing something or is this a bug?

You should be using a connection pool that manages connection
lifecycle for you. In the pool case, connections are opened and closed
for you based on constraints like pool min size, max size, and idle
period. Strongly recommend pooling for both performance and efficient
resource utilization (i.e. file handles in this case).

See 
http://docs.spring.io/spring-ldap/docs/1.3.2.RELEASE/apidocs/org/springframework/ldap/pool/factory/PoolingContextSource.html
for more information.

M

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to