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(HttpServletRequest request,
HttpServletResponse response)
Supports a HTTP DELETE to be equivlanent of consuming a singe message
from a queue
|
protected void |
doJavaScript(HttpServletRequest request,
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, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, logpublic AjaxServlet()
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
MessageListenerServletdoGet in class MessageListenerServletServletExceptionIOExceptionprotected void doJavaScript(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
IOExceptionServletExceptionCopyright © 2005–2016 FuseSource, Corp.. All rights reserved.