On Wed, Apr 2, 2014 at 1:22 PM, Chathura Ekanayake <[email protected]>wrote:

>
> Hi Amal,
>
> BPMN deployer in BPS maintains information about tenants' deployments in
> memory. Therefore, we have to extend the BPMN deployer to replicate this
> information among all members of a cluster.
>
> There are TODOs in the code to indicate the places where such replications
> have to be done. I think we can use two approaches for this:
>
> (1) Replicate information using messages
> (2) Use distributed hashmaps to store tenant information
>
> Azeez/Sameera: Can you recommend which method should we use?
>

Why not use a distributed cache?


>
> Regards,
> Chathura
>
>
>
> On Wed, Apr 2, 2014 at 12:27 PM, Amal Gunatilake <[email protected]> wrote:
>
>> 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
>>
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>*
*email: **[email protected]* <[email protected]>
* cell: +94 77 3320919 blog: **http://blog.afkham.org*<http://blog.afkham.org>
*twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
* linked-in: **http://lk.linkedin.com/in/afkhamazeez
<http://lk.linkedin.com/in/afkhamazeez>*

*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to