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:
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.


Field Summary
 
Fields inherited from class org.apache.activemq.broker.BrokerService
DEFAULT_BROKER_NAME, DEFAULT_PORT, destinationFactory, LOCAL_HOST_NAME, slaveStartSignal
 
Constructor Summary
XBeanBrokerService()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 void setDestroyApplicationContextOnShutdown(boolean destroy)
          Deprecated. 
 void setDestroyApplicationContextOnStop(boolean destroy)
          Deprecated. 
 void setStart(boolean start)
          Sets whether or not the broker is started along with the ApplicationContext it is defined within.
protected  boolean shouldAutostart()
           
 
Methods inherited from class org.apache.activemq.broker.BrokerService
addConnector, addConnector, addConnector, addConnector, addInterceptors, addJmsConnector, addNetworkConnector, addNetworkConnector, addNetworkConnector, addProxyConnector, addProxyConnector, addProxyConnector, addService, addShutdownHook, addShutdownHook, autoStart, checkQueueSize, configureService, configureServices, containerShutdown, createBroker, createBrokerObjectName, createDefaultDestinationInterceptor, createDuplexNetworkConnectorObjectName, createNetworkConnectorObjectName, createPersistenceAdapter, createRegionBroker, createRegionBroker, createTransportConnector, deleteAllMessages, getAdminConnectionContext, getAdminView, getBroker, getBrokerContext, getBrokerDataDirectory, getBrokerName, getBrokerObjectName, getConnectorByName, getConsumerSystemUsage, getConsumerSystemUsagePortion, getDataDirectoryFile, getDefaultSocketURIString, getDestination, getDestinationInterceptors, getDestinationPolicy, getDestinations, getExecutor, getIoExceptionHandler, getJmsBridgeConnectors, getManagementContext, getMasterConnectorURI, getMessageAuthorizationPolicy, getNetworkConnectorByName, getNetworkConnectors, getNetworkConnectorURIs, getPersistenceAdapter, getPersistenceFactory, getPersistenceTaskRunnerFactory, getPersistenceThreadPriority, getPlugins, getPort, getProducerSystemUsage, getProducerSystemUsagePortion, getProxyConnectors, getRegionBroker, getSchedulePeriodForDestinationPurge, getScheduler, getSchedulerDirectoryFile, getServices, getSlaveStartSignal, getSslContext, getSystemExitOnShutdownExitCode, getSystemUsage, getTaskRunnerFactory, getTaskRunnerPriority, getTempDataStore, getTimeBeforePurgeTempDestinations, getTmpDataDirectory, getTransportConnectors, getTransportConnectorURIs, getTransportConnectorURIsAsMap, getVmConnectorURI, getWaitForSlaveTimeout, handleIOException, isAdvisorySupport, isAllowTempAutoCreationOnSend, isCacheTempDestinations, isDedicatedTaskRunner, isDeleteAllMessagesOnStartup, isEnableStatistics, isKeepDurableSubsActive, isMonitorConnectionSplits, isNetworkConnectorStartAsync, isPassiveSlave, isPersistent, isPopulateJMSXUserID, isSchedulerSupport, isShutdownOnMasterFailure, isShutdownOnSlaveFailure, isSlave, isSplitSystemUsageForProducersConsumers, isStarted, isSupportFailOver, isSystemExitOnShutdown, isUseAuthenticatedPrincipalForJMSXUserID, isUseJmx, isUseLocalHostBrokerName, isUseLoggingForShutdownErrors, isUseMirroredQueues, isUseShutdownHook, isUseTempMirroredQueues, isUseVirtualTopics, isWaitForSlave, logError, masterFailed, processHelperProperties, registerConnectorMBean, registerFTConnectorMBean, registerJmsConnectorMBean, registerNetworkConnectorMBean, registerPersistenceAdapterMBean, registerProxyConnectorMBean, removeConnector, removeDestination, removeJmsConnector, removeNetworkConnector, removeService, removeShutdownHook, removeShutdownHook, setAdminView, setAdvisorySupport, setAllowTempAutoCreationOnSend, setBrokerContext, setBrokerId, setBrokerName, setBrokerObjectName, setCacheTempDestinations, setConsumerSystemUsage, setConsumerSystemUsagePortion, setDataDirectory, setDataDirectoryFile, setDedicatedTaskRunner, setDeleteAllMessagesOnStartup, setDestinationFactory, setDestinationInterceptors, setDestinationPolicy, setDestinations, setEnableStatistics, setIoExceptionHandler, setJmsBridgeConnectors, setKeepDurableSubsActive, setManagementContext, setMasterConnectorURI, setMessageAuthorizationPolicy, setMonitorConnectionSplits, setNetworkConnectors, setNetworkConnectorStartAsync, setNetworkConnectorURIs, setPassiveSlave, setPersistenceAdapter, setPersistenceFactory, setPersistenceTaskRunnerFactory, setPersistenceThreadPriority, setPersistent, setPlugins, setPopulateJMSXUserID, setProducerSystemUsage, setProducerSystemUsagePortion, setProxyConnectors, setRegionBroker, setSchedulePeriodForDestinationPurge, setSchedulerDirectory, setSchedulerDirectoryFile, setSchedulerSupport, setServices, setShutdownHooks, setShutdownOnMasterFailure, setShutdownOnSlaveFailure, setSplitSystemUsageForProducersConsumers, setSslContext, setSupportFailOver, setSystemExitOnShutdown, setSystemExitOnShutdownExitCode, setSystemUsage, setTaskRunnerFactory, setTaskRunnerPriority, setTempDataStore, setTimeBeforePurgeTempDestinations, setTmpDataDirectory, setTransportConnectors, setTransportConnectorURIs, setUseAuthenticatedPrincipalForJMSXUserID, setUseJmx, setUseLocalHostBrokerName, setUseLoggingForShutdownErrors, setUseMirroredQueues, setUseShutdownHook, setUseTempMirroredQueues, setUseVirtualTopics, setVmConnectorURI, setWaitForSlave, setWaitForSlaveTimeout, slaveConnectionEstablished, start, start, startAllConnectors, startDestinations, startDestinationsInPersistenceStore, startManagementContext, startTransportConnector, stop, stopAllConnectors, stopGracefully, toString, unregisterConnectorMBean, unregisterNetworkConnectorMBean, unregisterPersistenceAdapterMBean, waitForSlave, waitUntilStarted, waitUntilStopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XBeanBrokerService

public XBeanBrokerService()
Method Detail

afterPropertiesSet

@PostConstruct
public void afterPropertiesSet()
                        throws java.lang.Exception
Throws:
java.lang.Exception

shouldAutostart

protected boolean shouldAutostart()
Overrides:
shouldAutostart in class BrokerService

destroy

@PreDestroy
public void destroy()
             throws java.lang.Exception
Throws:
java.lang.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.


setDestroyApplicationContextOnShutdown

@Deprecated
public void setDestroyApplicationContextOnShutdown(boolean destroy)
Deprecated. 

Sets whether the broker should shutdown the ApplicationContext when the broker jvm is shutdown. The broker can be stopped because the underlying JDBC store is unavailable for example.


setDestroyApplicationContextOnStop

@Deprecated
public void setDestroyApplicationContextOnStop(boolean destroy)
Deprecated. 

Sets whether the broker should shutdown the ApplicationContext when the broker is stopped. The broker can be stopped because the underlying JDBC store is unavailable for example.



Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.