org.apache.activemq.transport.http
Class HttpEmbeddedTunnelServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.activemq.transport.http.HttpTunnelServlet
              extended by org.apache.activemq.transport.http.HttpEmbeddedTunnelServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
HttpSpringEmbeddedTunnelServlet

public class HttpEmbeddedTunnelServlet
extends HttpTunnelServlet

This servlet embeds an ActiveMQ broker inside a servlet engine which is ideal for deploying ActiveMQ inside a WAR and using this servlet as a HTTP tunnel.

See Also:
Serialized Form

Field Summary
protected  BrokerService broker
           
protected  HttpTransportServer transportConnector
           
 
Constructor Summary
HttpEmbeddedTunnelServlet()
           
 
Method Summary
protected  BrokerService createBroker()
          Factory method to create a new broker
protected  String getConnectorURL()
           
 void init()
           
 
Methods inherited from class org.apache.activemq.transport.http.HttpTunnelServlet
createTransportChannel, createTransportChannel, createWireFormat, doGet, doHead, doOptions, doPost, getTransportChannel, readRequestBody
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

broker

protected BrokerService broker

transportConnector

protected HttpTransportServer transportConnector
Constructor Detail

HttpEmbeddedTunnelServlet

public HttpEmbeddedTunnelServlet()
Method Detail

init

public void init()
          throws ServletException
Overrides:
init in class HttpTunnelServlet
Throws:
ServletException

createBroker

protected BrokerService createBroker()
                              throws Exception
Factory method to create a new broker

Throws:
Exception

getConnectorURL

protected String getConnectorURL()


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.