I am using Hibernate 2.1 and I can't get it to use c3po! I am using hibernate.cfg.xml and here is what I've got in it:
Code:
<hibernate-configuration>
<session-factory>
<!-- database properties -->
<property name="dialect">net.sf.hibernate.dialect.Oracle9Dialect</property>
<property name="connection.driver_class">oracle.jdbc.OracleDriver</property>
<property name="connection.username">user</property>
<property name="connection.password">xxx</property>
<property name="connection.url">xxx</property>
<!-- c3po -->
<property name="c3po.max_size">15</property>
<property name="c3po.min_size">1</property>
<property name="c3po.timeout">200</property>
<property name="c3po.max_statements">20</property>
<property name="c3po.idle_test_period">300</property>
<property name="c3po.acquire_increment">1</property>
<property name="show_sql">true</property>
<property name="use_outer_join">true</property>
<!-- mapping files -->
<mapping resource="ccnmtl/brownfield/Group.hbm.xml"/>
<mapping resource="ccnmtl/brownfield/User.hbm.xml"/>
<mapping resource="ccnmtl/brownfield/Test.hbm.xml"/>
<mapping resource="ccnmtl/brownfield/HistoryEvent.hbm.xml"/>
</session-factory>
</hibernate-configuration>
When Hibernate logs its startup, it mentions this:
net.sf.hibernate.cfg.Configuration - properties: {show_sql=true, java.vendor=Sun Microsystems Inc., catalina.base=/opt/tomcat4, hibernate.connection.url=xxx, catalina.useNaming=true, os.name=Linux,
sun.boot.class.path=/opt/tomcat4/common/endorsed/xercesImpl.jar:/opt/tomcat4/common/endorsed/xmlParserAPIs.jar:/opt/sun-jdk-1.4.2.05/jre/lib/rt.jar:/opt/sun-jdk-1.4.2.05/jre/lib/i18n.jar:/opt/sun-jdk-1.4.2.05/jre/lib/sunrsasign.jar:/opt/sun-jdk-1.4.2.05/jre/lib/jsse.jar:/opt/sun-jdk-1.4.2.05/jre/lib/jce.jar:/opt/sun-jdk-1.4.2.05/jre/lib/charsets.jar:/opt/sun-jdk-1.4.2.05/jre/classes, sun.java2d.fontpath=, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.4.2_05-b04,
user.name=root, connection.driver_class=oracle.jdbc.OracleDriver, user.language=en,
java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory, sun.boot.library.path=/opt/sun-jdk-1.4.2.05/jre/lib/i386,
dialect=net.sf.hibernate.dialect.Oracle9Dialect, java.version=1.4.2_05, version=2.4.1, user.timezone=US/Eastern, sun.arch.data.model=32, hibernate.use_outer_join=true,
java.endorsed.dirs=/opt/tomcat4/common/endorsed, sun.cpu.isalist=, file.encoding.pkg=sun.io, file.separator=/, java.specification.name=Java Platform API Specification, hibernate.cglib.use_reflection_optimizer=true,
java.class.version=48.0,
hibernate.c3po.min_size=1, user.country=US,
connection.url=jdbc:oracle:thin:@chili.cc.columbia.edu:1521:acisora1, java.home=/opt/sun-jdk-1.4.2.05/jre, java.vm.info=mixed mode, os.version=2.4.20-gentoo-r2,
hibernate.c3po.idle_test_period=300, hibernate.c3po.max_size=15, path.separator=:, connection.password=xxx, java.vm.version=1.4.2_05-b04, java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferencesFactory, hibernate.connection.password=xxx,
vendor-url=http://xml.apache.org/xalan-j, java.awt.printerjob=sun.print.PSPrinterJob, vendor=Apache Software Foundation, sun.io.unicode.encoding=UnicodeLittle,
hibernate.c3po.max_statements=20, hibernate.connection.username=ccnmtl_bfa_dev,
hibernate.c3po.acquire_increment=1, java.naming.factory.url.pkgs=org.apache.naming, user.home=/root, java.specification.vendor=Sun Microsystems Inc., org.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl, java.library.path=/opt/sun-jdk-1.4.2.05/jre/lib/i386/client:/opt/sun-jdk-1.4.2.05/jre/lib/i386:/opt/sun-jdk-1.4.2.05/jre/../lib/i386, java.vendor.url=http://java.sun.com/,
hibernate.connection.driver_class=oracle.jdbc.OracleDriver, connection.username=ccnmtl_bfa_dev, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=net.sf.hibernate.dialect.Oracle9Dialect, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, java.class.path=/opt/sun-jdk-1.4.2.05/lib/tools.jar:/opt/tomcat4/bin/bootstrap.jar, use_outer_join=true, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0,
catalina.home=/opt/tomcat4, sun.cpu.endian=little, sun.os.patch.level=unknown, java.io.tmpdir=/opt/tomcat4/temp,
hibernate.c3po.timeout=300, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, os.arch=i386, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.ext.dirs=/opt/sun-jdk-1.4.2.05/jre/lib/ext,
user.dir=/usr/local/share/sandboxes/emattes/tomcat4_4080/brownfield, line.separator=
, java.vm.name=Java HotSpot(TM) Client VM, file.encoding=ANSI_X3.4-1968, java.specification.version=1.4, hibernate.show_sql=true}
and then following shortly afterwards, it says this:
net.sf.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
and proceeds to set things up without c3po. What am I doing wrong?
Thanks!