title: does @EJB Annotation work for remote call?
body: <pre><code>public class Servlet2Stateless extends HttpServlet {
  
  @EJB private HelloUserLocal helloUser;
  
      @Override
      public void doGet(HttpServletRequest req, HttpServletResponse resp)
              throws ServletException, IOException {
  
          resp.setContentType("text/html");
          PrintWriter out = resp.getWriter();
          out.println(newSess.getName());
  
  
  }
  </code></pre>
  
  <p>will above line of code work when I have EJB and Servlet deployed on different servers? or I need to call it through traditional way????</p>