Two Question about Pool and Datasource Websphere.

Marwane <[email protected]>
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <[email protected]>
Hi ,

Q1 : whene  the pooled connection are closed definitivly (look at
OJB.properties and mapping.xml below)
Q2 : How to use datasource websphere with OJB ?


OJB.properties :

PersistenceBrokerFactoryClass=
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl

PersistenceBrokerClass=org.apache.ojb.broker.core.PersistenceBrokerImpl

maxActive=1000

maxIdle=-1

maxWait=2000

timeBetweenEvictionRunsMillis=-1

minEvictableIdleTimeMillis=1000000

whenExhaustedAction=0

ConnectionFactoryClass=
org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl

ConnectionManagerClass=
org.apache.ojb.broker.accesslayer.ConnectionManagerImpl



Repository.xml :

 <jdbc-connection-descriptor jcd-alias="default" default-connection="true"
platform="Db2" jdbc-level="2.0" driver="com.ibm.db2.jdbc.app.DB2Driver"
protocol="jdbc" subprotocol="db2" dbalias="//localhost/DB2" username="db2"
password="*****">
  <connection-pool  maxActive="1000" whenExhaustedAction="2"/>
  <sequence-manager className="
org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl">
   <attribute attribute-name="grabSize" attribute-value="5"/>
   <attribute attribute-name="globalSequenceId" attribute-value="true"/>
   <attribute attribute-name="globalSequenceStart" attribute-value="10000"/>
  </sequence-manager>
 </jdbc-connection-descriptor>



Thx in advance
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.