title: Does spring hibernate lock apply to other threads on different machines?
body: <pre><code>HibernateTemplate().refresh(obj, LockMode.UPGRADE);
  </code></pre>
  
  <p>Will above line block all threads including the threads on a different machine from continuing execution?</p>
  
  <p>Also when will this lock be released? </p>
  
  <p>Is it at the end of hibernate session?</p>
  
  <p>How expensive to getting the lock and wake up existing threads when lock is released? 
  Thanks</p>