亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

tomcat+mysql+jbpm配置工作流

系統(tǒng) 1808 0
環(huán)境:
JDK142
tomcat 5.0
mysql 5.0.16
apache-ant-1.6.5
jbpm-starters-kit-3.1.4
一、解壓縮jdpm-starters-kit-3.1.4,標(biāo)識(shí)為:JBPM_HOME
?????? 在mysql數(shù)據(jù)庫(kù)中建庫(kù)”jbpm“,在%JBPM_HOME%/lib下,建立mysql文件夾,將mysql驅(qū)動(dòng)程序拷貝到mysql文件夾下。
二、為 ant 創(chuàng)建 jbpm 相關(guān)數(shù)據(jù)庫(kù)修改相關(guān)配置文件
1
%JBPM_HOME%\src\resources\mysql下,創(chuàng)建create.db.hibernate.properties, “hsqldb 目錄改名為 “mysql” ,并修改 create.db.hibernate.properties文件,內(nèi)容如下:

1 ? #?these?properties?are?used?by?the?build?script?to?create?
2 ? #?a?hypersonic?database?in?the?build / db?directory?that?contains?
3 ? #?the?jbpm?tables?and?a?process?deployed?in?there
4 ? hibernate.dialect = org.hibernate.dialect.MySQLDialect
5 ? hibernate.connection.driver_class = com.mysql.jdbc.Driver
6 ? hibernate.connection.url = jdbc:mysql: // localhost:3306/jbpm
7 ? hibernate.connection.username = root
8 ? hibernate.connection.password =
9 ? hibernate.show_sql = true

2 、修改 %JBPM_HOME%\build.deploy.xml 文件中 “target” “create.db” 的內(nèi)容,刪除 “db.start” “db.stop” ,將所有的 “hsqldb” 替換為 “mysql”
內(nèi)容如下:

?1 ? < target?name = " create.db " ?depends = " declare.jbpm.tasks,?db.clean " ?description = " creates?a?hypersonic?database?with?the?jbpm?tables?and?loads?the?processes?in?
?2 ? there " >
?3 ? ???? < jbpmschema?actions = " create " ?properties = " ${basedir}/src/resources/mysql/create.db.hibernate.properties " /> ?
?4 ? ???? < loadidentities?file = " ${basedir}/src/resources/mysql/identity.db.xml " ?properties = " ${basedir}/src/resources/mysql/create.db.hibernate.properties " /> ?
?5 ? ???? < ant?antfile = " build.xml " ?target = " build.processes " ?inheritall = " false " ? /> ?
?6 ? ???? < deploypar?properties = " ${basedir}/src/resources/mysql/create.db.hibernate.properties " >
?7 ? ?????? < fileset?dir = " build " ?includes = " *.par " ? />
?8 ? ???? </ deploypar >
?9 ? ?? </ target >
10 ?

三、為 ant 創(chuàng)建 jbpm.war 包修改相關(guān)配置文件
1
、修改 %JBPM_HOME%\src\config.files\hibernate.cfg.xml 文件中數(shù)據(jù)庫(kù)連接配置部分,內(nèi)容如下:

?1 ? ……
?2 ? ???? <!-- ?jdbc?connection?properties? -->
?3 ? ???? < property?name = " hibernate.dialect " > org.hibernate.dialect.MySQLDialect </ property >
?4 ? ???? < property?name = " hibernate.connection.driver_class " > com.mysql.jdbc.Driver </ property >
?5 ? ???? < property?name = " hibernate.connection.url " > jdbc:mysql: // localhost:3306/jbpm</property>
?6 ? ???? < property?name = " hibernate.connection.username " > root </ property >
?7 ? ???? < property?name = " hibernate.connection.password " > rootrootrootroot </ property >
?8 ? ??? <!-- ?other?hibernate?properties? -->
?9 ? ???? < property?name = " hibernate.show_sql " > true </ property >
10 ? ????……
11 ?
2 、創(chuàng)建/修改 %JBPM_HOME%\src\resources\jbpm.sar\jbpm.properties ,內(nèi)容如下:

?1 ? jbpm.scheduler.service.factory = org.jbpm.scheduler.impl.SchedulerServiceImpl
?2 ? jbpm.task.instance. class = org.jbpm.taskmgmt.exe.TaskInstance
?3 ? #?uncomment?the?next?line? if ?JbpmSessionFactory.getInstance()
?4 ? #?should?lookup?the?singleton?instance?from?JNDI?instead?of?creating?
?5 ? #?a? default ?one.
?6 ? #
?7 ? #?jbpm.session.factory.jndi.name = java: / jbpm / JbpmSessionFactory
?8 ? #?uncomment?the?next?line?to?use?the?file?system?instead?of?the?database? for ?
?9 ? #?storing?files?related?to?a?process?definition
10 ? #
11 ? #?jbpm.files.dir = c: / jbpm.data
12 ? #?resource?path?to?a?properties?file?that?will?overwrite?all?the?hibernate?
13 ? #?properties.?For?database?specific?builds?in?db?project?there?is?a?different
14 ? #?hibernate.properties?file?on?the?classpath? for ?each?database.?You?could?change
15 ? #?the? default ?database? for ?any?testing?runs?by?uncommenting?the?next?line?and
16 ? #?adding?a?hibernate.properties?file?in?the?basedir.
17 ? #
18 ? jbpm.hibernate.cfg.xml = jbpm.hibernate.cfg.xml
19 ? #?jbpm.hibernate.properties = jbpm.hibernate.properties
20 ?

3 、修改 %JBPM_HOME%\src\resources\jbpm.sar\jbpm.hibernate.properties ,只用 hibernate.cfg.xml 來(lái)配置 hibernate ,因此全部注釋掉,內(nèi)容如下:

1 ? #?hibernate.dialect = org.hibernate.dialect.HSQLDialect
2 ? #?hibernate.connection.datasource = java: / DefaultDS
3 ? #?hibernate.show_sql = true

4 、修改 %JBPM_HOME%\build.deploy.xml 文件, “target” “build.webapp” 的內(nèi)容,原文件相關(guān)的 jar 包未包含全,因此補(bǔ)全,內(nèi)容如下:
?

?1 ?? < target?name = " build.webapp " ?description = " builds?jbpm.war " >
?2 ? ???? < ant?antfile = " build.xml " ?target = " build " ? /><!-- ?原文件是target = " build.webapp " ? -->
?3 ? ???? < mkdir?dir = " build/jbpm.war.dir " ? />
?4 ? ???? < copy?todir = " build/jbpm.war.dir " >
?5 ? ?????? < fileset?dir = " src/resources/jbpm.war " ? />
?6 ? ???? </ copy >
?7 ? ???? < copy?todir = " build/jbpm.war.dir/WEB-INF/lib " >
?8 ? ?????? < fileset?dir = " build " ?includes = " jbpm*.jar,converter.jar " ?excludes = " *src*.jar " ? />
?9 ? ?????? < fileset?dir = " lib/jsf " ?includes = " *.jar " ? />
10 ? ?????? < fileset?dir = " lib/dom4j " ?includes = " *.jar " ? />
11 ? ?????? <!-- fileset?dir = " lib/jaxen " ?includes = " *.jar " ? / ?included?in?lib / hibernate? -->
12 ? ?????? < fileset?dir = " lib/hibernate " ?includes = " *.jar " ? />
13 ? ?????? < fileset?dir = " lib/mysql " ?includes = " *.jar " ? />
14 ? ?????? < fileset?dir = " lib/commons " ?includes = " commons-digester-*.jar,??commons-beanutils-*.jar " ? />
15 ? ?????? < fileset?dir = " lib/jboss " ?includes = " *.jar " ??excludes = " jboss*.jar,*servlet*.jar,*hsql*.jar,dom4j*.jar " ? />
16 ? ???? </ copy >
17 ? ???? < jar?destfile = " build/jbpm.war " >
18 ? ?????? < fileset?dir = " build/jbpm.war.dir " ? />
19 ? ???? </ jar > ?
20 ? ?? </ target >
21 ?

四、執(zhí)行 Ant
1
、創(chuàng)建并初始化 jbpm 例子所需的 table

1 ? ant?create.db? - buildfile?build.deploy.xml


2 、生成 jbpm.war

1 ? ant?build.webapp? - buildfile?build.deploy.xm

tomcat+mysql+jbpm配置工作流


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 黄色成人免费网站 | 九九色视频 | 中文字幕欧美亚洲 | 日日干日日操日日射 | 狠狠狠色丁香婷婷综合久久88 | 亚洲日韩欧洲无码av夜夜摸 | 国产成人a一区二区 | 亚洲精品乱码一区二区在线观看 | 伊人激情久久综合中文字幕 | 天天天操 | 九九99国产精品视频 | 欧美专区亚洲 | 久久久久国产成人精品 | h片在线| 久久久精品免费国产四虎 | 一区二区三区免费精品视频 | 久久国产乱子伦精品免费不卡 | 99热免费| 久久国产精品免费一区二区三区 | 国产成人精品综合 | 91在线免费观看网站 | 日本久色| 淫综合网| 国产一级内谢a级高清毛片 国产一级片毛片 | 亚洲 欧洲 另类 综合 自拍 | 欧美人在线一区二区三区 | 精品免费视频 | 久久精品卫校国产小美女 | 精品久久久久久无码中文字幕 | 亚洲精品久久久久午夜福 | 97视频免费公开成人福利 | 天天做天天爱夜夜爽女人爽宅 | 久久99热久久精品 | 国产一区二区三区在线 | 思思久热re6这里有精品 | 国产成人精品第一区二区 | 欧美国产激情二区三区 | 日本中文在线观看 | 色噜噜狠狠色综合久 | 亚洲国产美女精品久久久久 | 精品无人区乱码一区二区 |