首页 / 软件开发 / JAVA / JBPM 4.0使用问题 -- 3:也谈 JBPM 4 整合Spring..
JBPM 4.0使用问题 -- 3:也谈 JBPM 4 整合Spring..2010-12-26 BlogJava Kim前段时间对 JBPM 4.0 Spring 2.6 进行了整合方法有几种,经过比较感觉原生集成较好~整合后的结构:src
esourcessrc
esourcesjbpmsrc
esourcesjbpmjbpm.cfg.xmlsrc
esourcesjbpmjbpm.default.cfg.xmlsrc
esourcesjbpmjbpm.tx.hibernate.cfg.xmlsrc
esourcesjbpmjbpm.mail.propertiessrc
esourcesjbpmjbpm.mail.templates.examples.xmlsrc
esourcesjbpmlogging.propertiessrc
esourcesspringapplicationContext-jbpm.xmlsrc
esourcesspringapplicationContext-hibernate.xml重点是5个标色文件jbpm.cfg.xml<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<import resource="jbpm/jbpm.default.cfg.xml" />
<import resource="jbpm/jbpm.tx.hibernate.cfg.xml" />
<import resource="jbpm.jpdl.cfg.xml" />
<import resource="jbpm.identity.cfg.xml" />
<!-- Job executor is excluded for running the example test cases. -->
<!-- To enable timers and messages in production use, this should be included. -->
<!--
<import resource="jbpm.jobexecutor.cfg.xml" />
-->
<import resource="jbpm/jbpm.mail.templates.examples.xml" />
<process-engine-context>
<command-service>
<retry-interceptor />
<environment-interceptor />
<spring-transaction-interceptor />
</command-service>
</process-engine-context>
<transaction-context>
<transaction />
<hibernate-session />
</transaction-context>
</jbpm-configuration>