在WeblogicV9.1上部署jBPM-3.0.2,并将数据库改为MySQL 5。
按此方法部署jBPM-3.1时有问题,待解决。
1 将 database 改成使用 MySQL
(1)解压缩 jbpm-3.0.2.zip , 在 jbpm-3.0.2/lib 下 , 建立目录 mysql。拷贝mysql 的 jdbc driver(名如:mysql-connector-java-3.1.7-bin.jar) 到 jbpm-3.0.2/lib/mysql 中。在MySQL上新建一个名为 jbpm的数据库。在 jbpm-3.0.2/src/resources 下,建立目录 mysql , 并将hsqldb 中的文件拷贝至此mysql目录。在MySQL中建立名为jbpm的数据库。修改 jbpm-3.0.2/src/resources/mysql/create.db.hibernate.properties 文件 , 如下:
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.url=jdbc:mysql://localhost:8080/jbpm
hibernate.connection.username=sa
hibernate.connection.password=sa
hibernate.c3p0.min_size=1
hibernate.c3p0.max_size=3
hibernate.show_sql=true
注意:localhost后面要添加你设置的