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, writeMessageResponseappendParametersToMessage, asBoolean, asBoolean, asDestination, asInt, asInteger, asLong, asLong, asString, getDestination, getDestination, getDestinationFromURI, getPostedMessageBody, getSelector, getSendPriority, getSendTimeToLive, init, isSendPersistent, isSync, isTopicdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic AjaxServlet()
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
MessageListenerServletdoGet in class MessageListenerServletjavax.servlet.ServletExceptionIOExceptionprotected void doJavaScript(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionCopyright © 2005–2020 FuseSource, Corp.. All rights reserved.