Class AjaxServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    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:
    Serialized Form
    • Constructor Detail

      • AjaxServlet

        public AjaxServlet()
    • Method Detail

      • doGet

        protected void doGet​(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws javax.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:
        javax.servlet.ServletException
        IOException
      • doJavaScript

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