public class SpringBrokerContextListener extends Object implements javax.servlet.ServletContextListener
<context-param>
<param-name>brokerURI</param-name>
<param-value>/WEB-INF/activemq.xml</param-value>
</context-param>
As a a default, if a brokerURI is not specified it will look up
for activemq.xml| Modifier and Type | Field and Description |
|---|---|
static String |
INIT_PARAM_BROKER_URI
broker uri context parameter name: brokerURI
|
| Constructor and Description |
|---|
SpringBrokerContextListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event) |
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
protected org.apache.activemq.broker.BrokerService |
createBroker(javax.servlet.ServletContext context)
Factory method to create a new ActiveMQ Broker
|
protected org.apache.activemq.broker.BrokerService |
getBrokerService()
Return the broker container.
|
protected void |
setBrokerService(org.apache.activemq.broker.BrokerService container)
Set the broker container to be used by this listener
|
public static final String INIT_PARAM_BROKER_URI
public SpringBrokerContextListener()
protected void setBrokerService(org.apache.activemq.broker.BrokerService container)
container - the container to be used.protected org.apache.activemq.broker.BrokerService getBrokerService()
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed in interface javax.servlet.ServletContextListenerprotected org.apache.activemq.broker.BrokerService createBroker(javax.servlet.ServletContext context)
Copyright © 2005–2019 FuseSource, Corp.. All rights reserved.