java.lang.Object
org.activemq.gbean.ActiveMQContainerGBean
- All Implemented Interfaces:
- ActiveMQBroker, ActiveMQContainer, org.apache.geronimo.gbean.GBeanLifecycle
- public class ActiveMQContainerGBean
- extends java.lang.Object
- implements org.apache.geronimo.gbean.GBeanLifecycle, ActiveMQContainer
Default implementation of the ActiveMQ Message Server
- Version:
- $Revision: 1.1.1.1 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private org.apache.commons.logging.Log log
brokerName
private final java.lang.String brokerName
context
private org.activemq.broker.BrokerContext context
container
private org.activemq.broker.BrokerContainer container
persistenceAdapter
private final org.activemq.store.PersistenceAdapter persistenceAdapter
jaasConfiguration
private final java.lang.String jaasConfiguration
securityRoles
private final java.util.Properties securityRoles
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
ActiveMQContainerGBean
public ActiveMQContainerGBean()
ActiveMQContainerGBean
public ActiveMQContainerGBean(java.lang.String brokerName,
org.activemq.store.PersistenceAdapter persistenceAdapter,
java.lang.String jaasConfiguration,
java.util.Properties securityRoles)
getBrokerContainer
public org.activemq.broker.BrokerContainer getBrokerContainer()
- Specified by:
getBrokerContainer in interface ActiveMQContainer
getBrokerAdmin
public org.activemq.broker.BrokerAdmin getBrokerAdmin()
- Specified by:
getBrokerAdmin in interface ActiveMQContainer
doStart
public void doStart()
throws java.lang.Exception
- Description copied from interface:
org.apache.geronimo.gbean.GBeanLifecycle
- Starts the GBean. This informs the GBean that it is about to transition to the running state.
- Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
doStop
public void doStop()
throws java.lang.Exception
- Description copied from interface:
org.apache.geronimo.gbean.GBeanLifecycle
- Stops the target. This informs the GBean that it is about to transition to the stopped state.
- Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
doFail
public void doFail()
- Description copied from interface:
org.apache.geronimo.gbean.GBeanLifecycle
- Fails the GBean. This informs the GBean that it is about to transition to the failed state.
- Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle
createContainer
protected org.activemq.broker.BrokerContainer createContainer()
throws java.lang.Exception
getGBeanInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
getBrokerName
public java.lang.String getBrokerName()
- Specified by:
getBrokerName in interface ActiveMQContainer
getJaasConfiguration
public java.lang.String getJaasConfiguration()
- Specified by:
getJaasConfiguration in interface ActiveMQContainer
getSecurityRoles
public java.util.Properties getSecurityRoles()
- Specified by:
getSecurityRoles in interface ActiveMQContainer