how can i sychronize a certain code among JVM's levels , on other word i have a Clustered Env. and i want to make sure that a pice of code to be executed Synch. at a time amoung all of the Clustered JVM's ...
well , i have an ID's generation table on my DB , that is resposible of generating the ID's of my entities according to some Custom rules , this process requires read and write to that table , so synchronization should be garanteed , Thanks
OCP , SCJP 5.0
posted 9 years ago
Database transactions and locks should do this for you. They're generally great at concurrency if you get the options right.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi