You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Jack ValLance <va...@forscom.army.mil> on 2004/05/13 18:31:50 UTC

OJB Properties are changed

I have the following setting in my OJB.properties file:

	# OJB.properties -- configuration of the OJB runtime environment

	maxActive=300

	maxIdle=-1

	maxWait=2000

	timeBetweenEvictionRunsMillis=-1

	minEvictableIdleTimeMillis=1000000

	whenExhaustedAction=2

When I run the application using Tomcat 4.1.27, I get the following 
Message: which changes the properties setting.

	[org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl] 	INFO: 
Create PersistenceBroker instance pool, pool configuration 	was 
{whenExhaustedAction=2, maxIdle=-1, maxActive=300, 				maxWait=2000, 
removeAbandoned=false, numTestsPerEvictionRun=10, 		testWhileIdle=false, 
minEvictableIdleTimeMillis=1000000, 			testOnReturn=false, 
logAbandoned=false, 					removeAbandonedTimeout=300, 
timeBetweenEvictionRunsMillis=-1, 			testOnBorrow=false}


	[org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl] 		INFO: 
Create new connection 					 
pool:org.apache.ojb.broker.metadata.JdbcConnectionDescriptor@e7fd03[
   jcd-alias=default
   default-connection=true
   dbms=Oracle
   jdbc-level=2.0
   driver=oracle.jdbc.driver.OracleDriver
   protocol=jdbc
   sub-protocol=Oracle
   db-alias=thin:@mcpha4cds51.forscom.army.mil:1521:nc2d
   user=TSAMS_USER
   password=*****
   eager-release=false
   ConnectionPoolDescriptor={whenExhaustedAction=0, maxIdle=-1, 
maxActive=21, maxWait=5000, removeAbandoned=false, 
numTestsPerEvictionRun=10, testWhileIdle=false, 
minEvictableIdleTimeMillis=600000, testOnReturn=false, 
logAbandoned=false, removeAbandonedTimeout=300, 
timeBetweenEvictionRunsMillis=-1, testOnBorrow=true}
   batchMode=false
   useAutoCommit=AUTO_COMMIT_SET_TRUE_AND_TEMPORARY_FALSE
   ignoreAutoCommitExceptions=false
 
sequenceDescriptor=org.apache.ojb.broker.metadata.SequenceDescriptor@1526e3[
      sequenceManagerClass=class 
org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl
      Properties={}



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: OJB Properties are changed

Posted by Armin Waibel <ar...@apache.org>.
Hi Jack,

Jack ValLance wrote:

> I have the following setting in my OJB.properties file:
> 
>     # OJB.properties -- configuration of the OJB runtime environment
> 
>     maxActive=300
> 
>     maxIdle=-1
> 
>     maxWait=2000
> 
>     timeBetweenEvictionRunsMillis=-1
> 
>     minEvictableIdleTimeMillis=1000000
> 
>     whenExhaustedAction=2
> 
> When I run the application using Tomcat 4.1.27, I get the following 
> Message: which changes the properties setting.
> 
>     [org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl]     
> INFO: Create PersistenceBroker instance pool, pool configuration     was 
> {whenExhaustedAction=2, maxIdle=-1, maxActive=300,                 
> maxWait=2000, removeAbandoned=false, numTestsPerEvictionRun=10,         
> testWhileIdle=false, minEvictableIdleTimeMillis=1000000,             
> testOnReturn=false, logAbandoned=false,                     
> removeAbandonedTimeout=300, 
> timeBetweenEvictionRunsMillis=-1,             testOnBorrow=false}
> 

The settings for the PersistenceBroker pool seems ok to me. What is the 
problem here?

Below you post the settings of the connection pool. The connection pool 
settings can be set within the 'jdbc-connection-descriptor' element 
using 'connection-pool'

<connection-pool
             maxActive="6"
             whenExhaustedAction="0"
             validationQuery="select count(*) from OJB_HL_SEQ"
         />

What are the problems here? Can you describe a little more?

regards,
Armin

> 
>     [org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl]         
> INFO: Create new connection                      
> pool:org.apache.ojb.broker.metadata.JdbcConnectionDescriptor@e7fd03[
>   jcd-alias=default
>   default-connection=true
>   dbms=Oracle
>   jdbc-level=2.0
>   driver=oracle.jdbc.driver.OracleDriver
>   protocol=jdbc
>   sub-protocol=Oracle
>   db-alias=thin:@mcpha4cds51.forscom.army.mil:1521:nc2d
>   user=TSAMS_USER
>   password=*****
>   eager-release=false
>   ConnectionPoolDescriptor={whenExhaustedAction=0, maxIdle=-1, 
> maxActive=21, maxWait=5000, removeAbandoned=false, 
> numTestsPerEvictionRun=10, testWhileIdle=false, 
> minEvictableIdleTimeMillis=600000, testOnReturn=false, 
> logAbandoned=false, removeAbandonedTimeout=300, 
> timeBetweenEvictionRunsMillis=-1, testOnBorrow=true}
>   batchMode=false
>   useAutoCommit=AUTO_COMMIT_SET_TRUE_AND_TEMPORARY_FALSE
>   ignoreAutoCommitExceptions=false
> 
> sequenceDescriptor=org.apache.ojb.broker.metadata.SequenceDescriptor@1526e3[ 
> 
>      sequenceManagerClass=class 
> org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl
>      Properties={}
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org