资源描述
把 jbpm 相关插件安装到 myeclipse在myeclipselO的安装目录下新建一个文件夹(我的叫myPlugins),然后把jbpm5安装目录-eclipse-下的 features 和 plugins 文件夹拷贝到刚新建的 myPlugins 目录下。im在 安装目录 build.xml 中增加如下代码:!- Start Services -target name=start.services depends=start.jboss,start.human.task /!- Stop Services -ciaikdir(iir= F$iiistalLlioiiiie/tcisk-seivLce1,target /硏凤屮忍匚 STcdir= Siii就詁1上101;11可/task-semce/sic destdiiB SfiiistallJiom e/task-seiii,ice.,,tcirget,r classpatliref= classpatiiliumaiLt indudisarLtii_inthiF=评: i4:1|ccopy tod i r=r$ini stall Ji om e/task-seivi ce/la rgetpldi r=p,$liitall Jio m fej/ta de-f/copy 卞cj 脱 h dasiaiii e- c rgjbpiti.D etn oTaskServ1ce!r fo rk- tni e1cdasspatli修改为 mysql 数据源:修改安装目录task-servicetargetMETATNFpersistence.xml 即可。property name=hibernate.dialect value=org.hibernate.dialect.MySQLDialect /property name=hibernate.connection.driver_class value=com.mysql.jdbc.Driver /propertyname=hibernate.connection.urlvalue=jdbc:mysql:/localhost:33O6/jbpm?characterEncoding=UTF-8 /property name=hibernate.connection.username value=root /property name=hibernate.connection.password value=root /配置 tomcat 数据源1.) Copy the following libraries to T0MCAT_H0ME/liba. ) Create the following btm-config.properties in TOMCAT_HOME/confbitron ix.tm.serverld=tomcat-btm-nodeObitron ix.tm.journal.disk.logPartlFile name=$btm.root/work/btm1.tlogbitron ix.tm.journal.disk.logPart2File name=$btm.root/work/btm2.tlogbitronix.tm.resource.configuration=$btm.root/conf/resources.propertiesb. ) Add transaction and Resource information after WatchedResource line in TOMCAT_HOME/conf/context.xml as shown below.WEB-INF/web.xmlc. ) Create resource.properties in TOMCAT_HOME/conf as shown below.resource.ds1.className=bitronix.tm.resource.jdbc.lrc .L rcXADataSource resource.ds1.uniqueName=jdbc/testDS1resource.ds1.minPoolSize=0resource.ds1.maxPoolSize=5d. ) Modify TOMCAT_HOME/conf/server.xml to include BTMLifecycleListenerafter the line that has GlobalResourcesLifecycleListener as shown below.Listener className=bitron ix.tm.integratio n.tomcat55.BTMLifecycleListe ner /
展开阅读全文