怎么样布署jbpm到jboss?

怎么样布署jbpm到jboss?

1.需要的软件
jBpm 2.0 is tested on a Windows XP machine with following software packages installed :
1)'J2SE SDK v 1.4.2_03', downloaded from http://java.sun.com/j2se/1.4.2/download.html
说明:我用1.4.1也可以
2)'Apache Ant version 1.6.1', downloaded from http://ant.apache.org/bindownload.cgi
说明:我用1.6.1以下的版本试也可以
3)Optionally, you can deploy jbpm on the JBoss j2ee server. 'JBoss 3.2.5', download from
http://prdownloads.sourceforge.net/jboss/jboss-3.2.5.zip?download,
unzip and set the JBOSS_HOME environment variable

2.获取jbpm源代码的方法
Connection type: pserver
User: anonymous
Password:
Host: cvs.sourceforge.net
Port: 2401 (which is the default)
Repository path: /cvsroot/jbpm
Label: :pserver:anonymous@cvs.sourceforge.net:/cvsroot/jbpm
Then checkout module jbpm2.
我想不用再说什么了吧?

3.布署
1)Installationunzip jbpm to a folder of your choice
和前面的参数要一致
2)update the configs in build.properties to your environment with your favorite text editor
这步很简单,4个参数修改后就可以了
3)in directory ${jbpm.home} run 'ant configure.jboss.3.2.3+'. (the same task works for jboss-3.2.5)
That creates a jbpm configuration ${jboss.home}/server/jbpm which is basically a copy of the 'all'
configuration. The only difference is that 2 files are added to the deploy directory :
jbpm-db-service.xml and jbpm-ds.xml
这个其实就是在jboss下加一个jbpm应用
4)start the jbpm configuration of jboss with '%JBOSS_HOME%/bin/run.bat -c jbpm'.
启动jboss下的jbpm应用
5)in directory ${jbpm.home}/web run 'ant deploy'. This will build and deploy the web application
to the jboss configuration that we've just created.
把我们具体内容发布到jbpm应用中
6)in directory ${jbpm.home}/web run 'ant deploy.process.archives'.
This deploys the demo payraise process to the jbpm database in jboss.
Since this is normally your first jbpm access to the database, this will also create the jbpm tables automatically.
发布流程定义,包括建立表结构
7)surf to http://localhost:8080/jbpm
可以开始学习了,呵呵.