WEB开发网
开发学院软件开发Java JBPM 4.0 使用问题 -- 3:也谈 JBPM 4 整合Sprin... 阅读

JBPM 4.0 使用问题 -- 3:也谈 JBPM 4 整合Spring..

 2009-09-22 00:00:00 来源:WEB开发网   
核心提示:前段时间对 JBPM 4.0 Spring 2.6 进行了整合方法有几种,经过比较感觉原生集成较好~整合后的结构:src\resourcessrc\resources\jbpmsrc\resources\jbpm\jbpm.cfg.xmlsrc\resources\jbpm\jbpm.default.cfg.xmlsr

前段时间对 JBPM 4.0 Spring 2.6 进行了整合

方法有几种,经过比较感觉原生集成较好~

整合后的结构:

src\resources

src\resources\jbpm

src\resources\jbpm\jbpm.cfg.xml

src\resources\jbpm\jbpm.default.cfg.xml

src\resources\jbpm\jbpm.tx.hibernate.cfg.xml

src\resources\jbpm\jbpm.mail.properties

src\resources\jbpm\jbpm.mail.templates.examples.xml

src\resources\jbpm\logging.properties

src\resources\spring\applicationContext-jbpm.xml

src\resources\spring\applicationContext-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>

1 2 3  下一页

Tags:JBPM 使用 问题

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接