Class MessageListenerServlet

  • All Implemented Interfaces:
    Serializable, Servlet, ServletConfig
    Direct Known Subclasses:
    AjaxServlet

    public class MessageListenerServlet
    extends MessageServletSupport
    A servlet for sending and receiving messages to/from JMS destinations using HTTP POST for sending and HTTP GET for receiving.

    You can specify the destination and whether it is a topic or queue via configuration details on the servlet or as request parameters.

    For reading messages you can specify a readTimeout parameter to determine how long the servlet should block for. The servlet can be configured with the following init parameters:

    defaultReadTimeout
    The default time in ms to wait for messages. May be overridden by a request using the 'timeout' parameter
    maximumReadTimeout
    The maximum value a request may specify for the 'timeout' parameter
    maximumMessages
    maximum messages to send per response
    See Also:
    Serialized Form