Hi Dan,

in your OJB.properties file was
maxIdle=-1

try set maxIdle to value >= 0

For more information see
GenericKeyedObjectPool at
http://nagoya.apache.org/gump/javadoc/jakarta-commons/pool/dist/docs/api
/

HTH
regards,
Armin


----- Original Message -----
From: "Drouin, Dany" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 24, 2002 5:34 PM
Subject: PersistenceBrokerFactory pool not releasing broker instances?



Hi,

I set the OBJ.properties file to evict any object that has been idling
for 1 minute (for testing purposes), and well found out that they never
get evicted.
Is this functionality in place in build 0.9.7?

here is the content of my ORB property file for the BrokerFactory pool

#-----------------------------------------------------------------------
-----------------
# PersistenceBrokerFactory pool
#-----------------------------------------------------------------------
-----------------
# PersistenceBroker pool configuration
# This pool uses the jakarta-commons-pool api.
# There you can find things described in detail.
#
# maximum number of brokers that can be borrowed from the
# pool at one time. When non-positive, there is no limit.
maxActive=100
#
# controls the maximum number of brokers that can sit idle in the
# pool (per key) at any time. When non-positive, there is no limit
maxIdle=-1
#
# max time block to get broker instance from pool, after that exception
is thrown.
# When non-positive, block till last judgement
maxWait=2000
#
# indicates how long the eviction thread should sleep before "runs" of
examining
# idle objects. When non-positive, no eviction thread will be launched.
timeBetweenEvictionRunsMillis=60000
#
# specifies the minimum amount of time that an broker may sit idle
# in the pool before it is eligable for eviction due to idle time.
# When non-positive, no object will be dropped from the pool due
# to idle time alone (depends on timeBetweenEvictionRunsMillis > 0)
minEvictableIdleTimeMillis=60000
#
# specifies the behaviour of the pool when broker capacity is
# exhausted (see maxActive above)
# 0 - fail
# 1 - block
# 2 - grow
whenExhaustedAction=0
#
#

thanks
Dan




--
To unsubscribe, e-mail:
<mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:ojb-user-help@;jakarta.apache.org>





--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to