Class AjaxServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class AjaxServlet extends MessageListenerServlet
AjaxServlet. The AjaxServlet extends the MessageListenerServlet with the capability to server the amq.js script and associated scripts from resources within the activemq-web jar. The amq.js script is the client side companion to the MessageListenerServlet and supports sending messages and long polling for receiving messages (Also called Comet style Ajax).
See Also:
  • Constructor Details

    • AjaxServlet

      public AjaxServlet()
  • Method Details

    • doGet

      protected void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException
      Description copied from class: MessageListenerServlet
      Supports a HTTP DELETE to be equivlanent of consuming a singe message from a queue
      Overrides:
      doGet in class MessageListenerServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • doJavaScript

      protected void doJavaScript(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException
      Throws:
      IOException
      jakarta.servlet.ServletException