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());
}
sẽ ở trên dòng mã hoạt động khi tôi có EJB và Servlet được triển khai trên các máy chủ khác nhau không? hoặc tôi cần gọi nó theo cách truyền thống ????có hoạt động chú thích @EJB cho cuộc gọi từ xa không?