How does the write lock apply to an Fqn node, say, “/org/jboss/test”?
First of all, JBoss Cache has a notion of root that serves as a starting point for every navigational operation. The default is “/” (since the default separator is “/” for the fqn). The locking then is applied to the node under root, for example “/org” (no locking “/”). Furthermore, let’s say when JBoss Cache needs to apply a write lock on node “/org/jboss/test”, it will first try to obtain read lock from the parent nodes recursively (in this example, “/org”, and “/org/jboss”). Only when it succeeds then it will try to obtain a write lock on “/org/jboss/test”.