title: Why @Stateless @WebService is stateful?
body: <p>With a web service defined like @Stateless</p>
  
  <pre><code> import javax.ejb.Stateless;
   import javax.jws.WebService;
  
   @Stateless
   @WebService(serviceName = "TestService")
   public class TestService {
       int counter = 0;
       public int getCounter() {
           return counter++;
       }
   }
  </code></pre>
  
  <p>Why 'counter' is increased with each request and does not return always 0?</p>