Hi All, Since Activiti keeps all the data in the database, Activiti simply supports clustering by sharing the database among nodes. Following are the steps to setup Activiti cluster.
1. The default Activiti database setup has a H2 database and it creates in the memory. So once the server restarts the data will get lost. Hence we need to either make the database data persistence by modifying the db.properties file located in apache-tomcat-7.0.41/webapps/activiti-explorer/WEB-INF/classes/db.properties. Modify the line as follows* jdbc.url=jdbc:h2:file:activiti;DB_CLOSE_DELAY=1000* 2. Now with the same database settings deploy 2 activiti-explorer.war files in the Apache Tomcat server named *activiti-explorer1* and *activiti-explorer2*. 3. Access the 2 Activiti servers (*http://localhost:8080/activiti-explorer/ <http://localhost:8080/activiti-explorer/> *and* http://localhost:8080/activiti-explorer2/ <http://localhost:8080/activiti-explorer2/>*) 4. Deploy sample BPMN artifact in one node and you will see the changes reflected to the next node as well. If you need to use a different database, the DB scripts are provided in *activiti-5.14/database/create/* (You will need to add the corresponding jdbc driver library to *apache-tomcat-7.0.41/webapps/activiti-explorer/WEB-INF/lib/*). Since we are using the same setup when implementing BPMN support for BPS. The clustering should support in the same manner. I will setup a BPS cluster and further test this scenario for verification. Thank you & Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
