public class AjaxServlet extends MessageListenerServlet
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).Constructor and Description |
---|
AjaxServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Supports a HTTP DELETE to be equivlanent of consuming a singe message
from a queue
|
protected void |
doJavaScript(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
destroy, doMessages, doPost, getAjaxWebClient, getReadTimeout, init, writeMessageResponse
appendParametersToMessage, asBoolean, asBoolean, asDestination, asInt, asInteger, asLong, asLong, asString, getDestination, getDestination, getDestinationFromURI, getPostedMessageBody, getSelector, getSendPriority, getSendTimeToLive, init, isSendPersistent, isSync, isTopic
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public AjaxServlet()
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
MessageListenerServlet
doGet
in class MessageListenerServlet
javax.servlet.ServletException
IOException
protected void doJavaScript(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.