[jboss-dev-forums] [Design of JBoss jBPM] - Rework of jBPM deployment within JBoss
bill.burke@jboss.com
do-not-reply at jboss.com
Wed Jun 6 18:51:54 EDT 2007
I'm reworking the JBoss+jBPM configuration and deployment structure:
1. The hibernate and jbpm xml files are embedded deep within the enterprise archive. These need to be moved up for easy edits by the user
2. Getting up and started with jBPM is painful in a JBoss environment. (Please correct me on points here).
a) You need to create the jBPM schema in the database
b) You need to modify your ant build to save your .jpdl into the database so that the jBPM server can pick things up. OR you do some other manual or programmatic process to get your process definitions in the database.
c) You need to copy and .jar files into the JBoss lib/ directory, WAR archive, or whatever.
I want to create a ProcessDefinitionDeployer for jboss. This will work like the SAR, EJB, EAR, etc... deployers. Users would be able to deploy a .jar file named "xxx.bpm" or a foo.jpdl.xml file. The jar file would contain a "META-INF/jbpm.jpdl.xml" file within it and any classes that could possibily be used by the process definition.
At deployment time, the JBPM deployer would calculate a hash for hte .xml file. If this hash matches a previously deployed .xml file nothing is done. If it is a new hash, a new version of the process definition is saved to the database.
A new config structure would look like this:
| jbpm.deployer/
| hibernate.cfg.xml
| jbpm.cfg.xml
| jbpm-ds.xml
| jbpm-jpdl.jar
| jbpm-enterprise.ear
| META-INF/
| jboss-service.xml
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051925#4051925
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051925
More information about the jboss-dev-forums
mailing list