Class XBeanBrokerService

java.lang.Object
org.apache.activemq.broker.BrokerService
org.apache.activemq.xbean.XBeanBrokerService
All Implemented Interfaces:
org.apache.activemq.Service

public class XBeanBrokerService extends BrokerService
An ActiveMQ Message Broker. It consists of a number of transport connectors, network connectors and a bunch of properties which can be used to configure the broker as its lazily created.
  • Constructor Details

    • XBeanBrokerService

      public XBeanBrokerService()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Throws:
      Exception
    • shouldAutostart

      protected boolean shouldAutostart()
      Overrides:
      shouldAutostart in class BrokerService
    • destroy

      public void destroy() throws Exception
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Specified by:
      stop in interface org.apache.activemq.Service
      Overrides:
      stop in class BrokerService
      Throws:
      Exception
    • setStart

      public void setStart(boolean start)
      Sets whether or not the broker is started along with the ApplicationContext it is defined within. Normally you would want the broker to start up along with the ApplicationContext but sometimes when working with JUnit tests you may wish to start and stop the broker explicitly yourself.