Class HttpEmbeddedTunnelServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.apache.activemq.transport.http.HttpTunnelServlet
-
- 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
Fields Modifier and Type Field Description protected BrokerService
broker
protected HttpTransportServer
transportConnector
-
Constructor Summary
Constructors Constructor Description HttpEmbeddedTunnelServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BrokerService
createBroker()
Factory method to create a new brokerprotected String
getConnectorURL()
void
init()
-
Methods inherited from class org.apache.activemq.transport.http.HttpTunnelServlet
createTransportChannel, createTransportChannel, createWireFormat, doGet, doHead, doOptions, doPost, getTransportChannel
-
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
-
-
-
-
Field Detail
-
broker
protected BrokerService broker
-
transportConnector
protected HttpTransportServer transportConnector
-
-
Method Detail
-
init
public void init() throws ServletException
- Overrides:
init
in classHttpTunnelServlet
- Throws:
ServletException
-
createBroker
protected BrokerService createBroker() throws Exception
Factory method to create a new broker- Throws:
Exception
-
getConnectorURL
protected String getConnectorURL()
-
-