|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.web.SpringBrokerContextListener
public class SpringBrokerContextListener
Used to configure and instance of ActiveMQ BrokerService 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 BrokerService |
createBroker(ServletContext context)
Factory method to create a new ActiveMQ Broker |
protected BrokerService |
getBrokerService()
Return the broker container. |
protected void |
setBrokerService(BrokerService 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 setBrokerService(BrokerService container)
container
- the container to be used.protected BrokerService getBrokerService()
public void contextInitialized(ServletContextEvent event)
contextInitialized
in interface ServletContextListener
public void contextDestroyed(ServletContextEvent event)
contextDestroyed
in interface ServletContextListener
protected BrokerService createBroker(ServletContext context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |