cancel
Showing results for 
Search instead for 
Did you mean: 

architecture question

saatsch
Champ in-the-making
Champ in-the-making
Hello everybody,

we have two jboss servers that don't know each other. (no clustering) The only thing they have in common is a connection to the same database.

If we deploy a webapp with embedded activiti-engine.jar to both servers, is there a chance of concurrency issues ?

(like e.g. in a process with two human tasks that can be executed in parallel and one user is on jboss1 and the other on jboss2 and exactly at the same time both users complete their tasks)

Do we have to take any notable extra measures to ensure we stay safe from such concurrency issues ?

Are the REV_ columns in the database tables used for checking/preventing such concurrency issues, or do they exist for history logging reasons ?


Thanks very much in advance for any help.

Greets
Saatsch
1 REPLY 1

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
If we deploy a webapp with embedded activiti-engine.jar to both servers, is there a chance of concurrency issues ?

(like e.g. in a process with two human tasks that can be executed in parallel and one user is on jboss1 and the other on jboss2 and exactly at the same time both users complete their tasks)

A little, but if they do, you'll get a concurrent modification exception on which you can act and e.g. report to the second user that someone else already did something.

Do we have to take any notable extra measures to ensure we stay safe from such concurrency issues ?
Reporting back to the user if it happend. That is the main thing.

Are the REV_ columns in the database tables used for checking/preventing such concurrency issues,
Exactly