AnsweredAssumed Answered

Deploy Activiti as JBoss module

Question asked by aeross on Mar 21, 2013
Latest reply on Mar 25, 2013 by jbarrez
Hi,

I install activiti as JBoss module and i would share this experience.

Products versions :
Activiti version : 5.12
JBoss version : 7.1.1 Final

Here are the steps I made :
1 create directory JBOSS_HOME\modules\org\activiti\main
2 copy jars in it:

activiti-bpmn-converter-5.12.jar
activiti-bpmn-model-5.12.jar
activiti-cxf-5.12.jar
activiti-engine-5.12.jar
joda-time-2.1.jar
mybatis-3.1.1.jar
3 create file module.xml :

<module xmlns="urn:jboss:module:1.0" name="org.activiti">
  <resources>
    <resource-root path="activiti-bpmn-converter-5.12.jar"/>
    <resource-root path="activiti-bpmn-model-5.12.jar"/>
    <resource-root path="activiti-engine-5.12.jar"/>
    <resource-root path="activiti-cxf-5.12.jar"/>
    <resource-root path="mybatis-3.1.1.jar"/>
    <resource-root path="joda-time-2.1.jar"/>
  </resources>
  <dependencies>
    <module name="javax.api"/>
    <module name="javax.activation.api"/>
    <module name="org.apache.commons.lang"/>
    <module name="org.slf4j"/>
  </dependencies>
</module>

4 in EJB 3.1 project i create file META-INF\jboss-deployment-structure.xml or conf\jboss-deployment-structure.xml

<jboss-deployment-structure>
    <deployment>
        <dependencies>
            <module name="org.activiti" />
        </dependencies>
    </deployment>
</jboss-deployment-structure>

Then i start Jboss server and deploy on it an EJB project which use Activiti 5.12.
Enjoy


Clement.

Outcomes