org.apache.activemq.xbean
Class XBeanBrokerService

java.lang.Object
  extended by org.apache.activemq.broker.BrokerService
      extended by org.apache.activemq.xbean.XBeanBrokerService
All Implemented Interfaces:
java.io.Serializable, Service, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class XBeanBrokerService
extends BrokerService
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

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.

Version:
$Revision: 1.1 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.activemq.broker.BrokerService
DEFAULT_PORT
 
Constructor Summary
XBeanBrokerService()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 boolean isStart()
           
 void setStart(boolean start)
          Sets whether or not the broker is started along with the ApplicationContext it is defined within.
 
Methods inherited from class org.apache.activemq.broker.BrokerService
addConnector, addConnector, addConnector, addConnector, addInterceptors, addJmsConnector, addNetworkConnector, addNetworkConnector, addNetworkConnector, addProxyConnector, addProxyConnector, addProxyConnector, addService, addShutdownHook, configureService, containerShutdown, createAdminConnectionContext, createBroker, createBrokerObjectName, createDefaultDestinationInterceptor, createNetworkConnectorObjectName, createPersistenceAdapter, createPersistenceFactory, createRegionBroker, createTransportConnector, deleteAllMessages, getAdminConnectionContext, getAdminView, getBroker, getBrokerName, getBrokerObjectName, getDataDirectory, getDestinationInterceptors, getDestinationPolicy, getDestinations, getJmsBridgeConnectors, getManagementContext, getMasterConnectorURI, getMemoryManager, getMessageAuthorizationPolicy, getNetworkConnectors, getNetworkConnectorURIs, getPendingDurableSubscriberPolicy, getPersistenceAdapter, getPersistenceFactory, getPersistenceTaskRunnerFactory, getPersistenceThreadPriority, getPlugins, getPort, getProxyConnectors, getServices, getTaskRunnerFactory, getTempDataStore, getTmpDataDirectory, getTransportConnectors, getTransportConnectorURIs, getVmConnectorURI, isAdvisorySupport, isDeleteAllMessagesOnStartup, isKeepDurableSubsActive, isPersistent, isPopulateJMSXUserID, isShutdownOnMasterFailure, isSlave, isStarted, isUseJmx, isUseLoggingForShutdownErrors, isUseShutdownHook, isUseVirtualTopics, logError, masterFailed, processHelperProperties, registerConnectorMBean, registerFTConnectorMBean, registerJmsConnectorMBean, registerNetworkConnectorMBean, registerProxyConnectorMBean, removeConnector, removeJmsConnector, removeNetworkConnector, removeShutdownHook, setAdminView, setAdvisorySupport, setBrokerName, setBrokerObjectName, setDataDirectory, setDeleteAllMessagesOnStartup, setDestinationFactory, setDestinationInterceptors, setDestinationPolicy, setDestinations, setJmsBridgeConnectors, setKeepDurableSubsActive, setManagementContext, setMasterConnectorURI, setMemoryManager, setMessageAuthorizationPolicy, setNetworkConnectors, setNetworkConnectorURIs, setPendingDurableSubscriberPolicy, setPersistenceAdapter, setPersistenceFactory, setPersistenceTaskRunnerFactory, setPersistenceThreadPriority, setPersistent, setPlugins, setPopulateJMSXUserID, setProxyConnectors, setServices, setShutdownOnMasterFailure, setTaskRunnerFactory, setTempDataStore, setTmpDataDirectory, setTransportConnectors, setTransportConnectorURIs, setUseJmx, setUseLoggingForShutdownErrors, setUseShutdownHook, setUseVirtualTopics, setVmConnectorURI, start, startAllConnectors, startDestinations, startDestinationsInPersistenceStore, startTransportConnector, stop, stopAllConnectors, unregisterConnectorMBean, unregisterNetworkConnectorMBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XBeanBrokerService

public XBeanBrokerService()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

destroy

public void destroy()
             throws java.lang.Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
java.lang.Exception

isStart

public boolean isStart()

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.



Copyright © 2009 Apache Software Foundation. All Rights Reserved.