|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.web.SpringBrokerContextListener
Used to configure and instance of ActiveMQ BrokerContainer using ActiveMQ/Spring's xml configuration.
The configuration file is specified via the context init parameter brokerURI, typically:
<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
Field Summary | |
static String |
INIT_PARAM_BROKER_URI
broker uri context parameter name: brokerURI |
Constructor Summary | |
SpringBrokerContextListener()
|
Method Summary | |
void |
contextDestroyed(ServletContextEvent event)
|
void |
contextInitialized(ServletContextEvent event)
|
protected org.activemq.broker.BrokerContainer |
createBroker(ServletContext context)
Factory method to create a new ActiveMQ Broker |
protected org.activemq.broker.BrokerContainer |
getBrokerContainer()
Return the broker container. |
protected void |
setBrokerContainer(org.activemq.broker.BrokerContainer container)
Set the broker container to be used by this listener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String INIT_PARAM_BROKER_URI
Constructor Detail |
public SpringBrokerContextListener()
Method Detail |
protected void setBrokerContainer(org.activemq.broker.BrokerContainer container)
container
- the container to be used.protected org.activemq.broker.BrokerContainer getBrokerContainer()
public void contextInitialized(ServletContextEvent event)
contextInitialized
in interface ServletContextListener
public void contextDestroyed(ServletContextEvent event)
contextDestroyed
in interface ServletContextListener
protected org.activemq.broker.BrokerContainer createBroker(ServletContext context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |