title: What mean JAX-RPC-based web service endpoints (in context of EJB)?
body: <p>I read <em>Beginning Java EE 6 platform with GlassFish 3</em> from Antonio Goncalves. 
  In chapter about EJBs he wrote that some features of EJB may be deprecated in next releases of Java EE. </p>
  
  <blockquote>
    <blockquote>
      <p>None of the following features is actually removed from EJB 3.1, but
      the next version will have to either remove or retain some of them:</p>
    </blockquote>
    
    <ul>
    <li>JAX-RPC-based web service endpoints</li>
    </ul>
  </blockquote>
  
  <p>But I not understand what he mean here. He wrote about classes annotated with <code>@Stateless</code> and <code>@WebService</code>? i.e. </p>
  
  <pre><code>@Stateless
  @WebService
  public class MyService { 
  
  }
  </code></pre>
  
  <p>So it is bad practice to annotate one class with this both annotations? It is better to separate classes? Create one to act  only as EJB, and create another class to act only as as WebService (which delegates method invocation to EJB defined as class-member)?</p>