Hi All, I am trying to write a primitive analysis engine that checks, and creates or updates a database schema based on the type system. I need to synchronize the initialization of this component so that only one instance of the component will do this task when there are multiple instances being instantiated.
What is the correct object to synchronize on? Is the type system object the correct one and does it maintain its identity throughout a JVM run? Is it a different object in the other aggregates even though they use the same type system description? I need to block all other threads in the other instances of the current component until the database is updated. I also need this object to be specific to the current aggregate so that other aggregates running in the same JVM can have their own synchronization objects and database updates independent of each other. In other words, I can't use a JVM wide object. Thank you, Shahim
