Red Hat Training
A Red Hat training course is available for JBoss Enterprise SOA Platform
7.2. JBPM Integration Configuration
- To create a JBPM database, start the
DatabaseInitializer
MBean. (You will find the configuration settings for this MBean in the first configuration element of theSOA_ROOT/jboss-as/server/PROFILE/deploy/jbpm.esb/jbpm-service.xml
file.)Warning
The JbpmDS data source is defined in the jbpm-ds.xml file, located inSOA_ROOT/jboss-as/server/PROFILE/deploy/jbpm.esb
. By default, it uses a Hypersonic database. Always change this to a production-quality database in a live environment.Warning
The JBoss Enterprise SOA Platform also comes equipped with Hypersonic, an in-memory reference database. Use this in testing environments only. - Follow the example shown below:
<classpath codebase="deploy" archives="jbpm.esb"/> <classpath codebase="deploy/jbossesb.sar/lib" archives="jbossesb-rosetta.jar"/> <mbean code="org.jboss.internal.soa.esb.dependencies.DatabaseInitializer" name="jboss.esb:service=JBPMDatabaseInitializer"> <attribute name="Datasource">java:/JbpmDS</attribute> <attribute name="ExistsSql">select count(*) from JBPM_ID_USER</attribute> <attribute name="SqlFiles"> jbpm-sql/jbpm.jpdl.hsqldb.sql </attribute> <depends>jboss.jca:service=DataSourceBinding,name=JbpmDS</depends> <attribute name="UseEOL">true</attribute> </mbean> <mbean code="org.jboss.soa.esb.services.jbpm.configuration.JbpmService" name="jboss.esb:service=JbpmService"> </mbean>