title: Java, EJB, Concurrency lock for all methods
body: <p>I have EJB with two methods</p>
  
  <pre><code>@Singleton(name = "RatingCalculatorEJB")
  public class RatingCalculatorBean {
  
      public void countRating() {}
  
      public void countRating(int someID) {}
  }
  </code></pre>
  
  <p>By default all methods has concurrency lock: @Lock(LockType.WRITE)
  If method invoked by any thread - another thread will wait to invoke this method.</p>
  
  <p>But I need more - if any method invoked by a thread, all other threads that call <strong>any</strong> method of EJB should wait.
  Does I have any way to do it?</p>
  
  <p>The same question for @Stateless beans</p>