Say I have two java objects i.e. two instances of a request-scoped JSF managed bean. Assume one of the methods in the managed-bean is synchronized.
Do I have ONE lock per class or ONE lock per instance? If the first instance enters the synchronized method and stays within the method of a while, can the second instance enter that synchonized method as well?