<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>com.mysql.jdbc.Driver</value>
</property>
<property name="url">
<value>jdbc:mysql://localhost:3306/test</value>
</property>
<property name="username">
<value>root</value>
</property>
<property name="password"><value/>
</property>
</bean>
<!-- Hibernate SessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref local="dataSource"/>
</property>
<property name="mappingLocations">
<value>classpath*:/org/jbpm/**/*.hbm.xml</value>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop>
<prop key="hibernate.jdbc.batch_size">0</prop>
</props>
</property>
</bean>
<!-- Transaction manager for a single Hibernate SessionFactory (alternative to JTA) -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>
<!-- reading jBPM process definitions -->
<bean id="websaleWorkflow1" class="org.springmodules.workflow.jbpm31.definition.ProcessDefinitionFactoryBean">
<property name="definitionLocation" value="processdefinition.xml"/>
</bean>
<!-- jBPM configuration-->
<bean id="jbpmConfiguration" class="org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean">
<property name="sessionFactory" ref="sessionFactory"/>
<property name="configuration" value="jbpm.cfg.xml"/>
<property name="processDefinitions">
<list>
<ref local="websaleWorkflow1"/>
</list>
</property>
<property name="createSchema" value="true"/>
</bean>
<!-- jBPM template -->
<bean id="jbpmTemplate" class="org.springmodules.workflow.jbpm31.JbpmTemplate">
<constructor-arg index="0" ref="jbpmConfiguration"/>
<constructor-arg index="1" ref="websaleWorkflow1"/>
</bean>
</beans>
spring+hibernate+jbpm3整合
转载
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
jbpm4.4整合spring2.5(ibatis与hibernate全整合)
库,所以到jbpm-4.4\install\src\db\create中找...
jbpm 工作流 xml spring bc -
JBPM6入门资料: Spring4 + Hibernate4 + JBPM6整合
参考资料:===============================
java javascript runtime ViewUI spring -
【Spring实战-3】Spring整合Hibernate、Struts
作者:ssslinppp 1. 摘要版本:Spring4.0.4;Hibernate4.3.5;struts2.3.16;主要介绍了如下内容:项目结构的规划;Spring下整合Hiberna
Hibernate spring spring整合Hibernate SSH -
JBPM 4.4和Hibernate4、Spring4整合(注解)
JBPM4.4整合Hibernate4和Spring4
JBPM4.4 JBPM4整合Hiber -
spring boot整合jbpm springboot整合poi
文章目录springboot:整合easypoi一、导出pom文件实体类工具类servicecontroller导出结果二、导入普通导入controller 和service导入结果校验导入修改实体类自定义校验类controller和service校验结果 springboot:整合easypoi一、导出pom文件<dependencies> <dependen
spring boot整合jbpm java spring boot intellij-idea List