要添加的jar包:
c3p0-0.9.1.2.jar与
hibernate-c3p0-3.5.6-Final.jar
配置文件中注意:bonita.search.use 必须要设置为false
bonita.search.use false
hibernate.search.default.indexBase ${BONITA_HOME}/server/default/work/indexes/journal
hibernate.connection.driver_class net.sourceforge.jtds.jdbc.Driver
bonita.hibernate.interceptor org.ow2.bonita.env.interceptor.MSSQLServerDescNullsFirstInterceptor
hibernate.connection.url jdbc\:jtds\:sqlserver\:/localhost\:1433/bonita_journal
hibernate.dialect org.hibernate.dialect.SQLServerDialect
hibernate.connection.provider_class org.hibernate.connection.C3P0ConnectionProvider
hibernate.connection.username sa
hibernate.connection.password sa
hibernate.c3p0.min_size 5
hibernate.c3p0.max_size 50
hibernate.c3p0.timeout 1800
hibernate.c3p0.max_statements 150
hibernate.c3p0.idle_test_period 100
hibernate.c3p0.testConnectionOnCheckin true
hibernate.c3p0.acquire_increment 3
其余的属性默认就可以了,两个配置文件类似,改下数据库名即可