|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.core.setup.ActiveMQConfigurator
public class ActiveMQConfigurator
Helper object for configuring ActiveMQ and its ConnectionFactory
Field Summary | |
---|---|
static java.lang.String |
AMQ_BROKER_CONFIG
Name of ActiveMQ property telling the broker xml configuration path |
static java.lang.String |
AMQ_BROKER_CONFIG_PATH
Path to the default broker configuration file |
static java.lang.String |
AMQ_BROKER_URL
Name of ActiveMQ property telling the broker URL to use |
static java.lang.String |
AMQ_EMBEDDED_BROKER
Name of ActiveMQ property telling if it uses an embedded broker |
static java.lang.String |
AMQ_J2EE_COMPLIANCE
Name of ActiveMQ property telling J2EE compliance |
protected static java.lang.String |
AMQ_PROPERTIES_PREFIX
Prefix of application properties related to ActiveMQ. |
static java.lang.String |
AMQ_SETUP_PROPERTY
Name of application property telling if ActiveMQ has been setup |
protected static org.apache.commons.logging.Log |
log
Get a commons logger. |
Constructor Summary | |
---|---|
ActiveMQConfigurator()
Creates a new instance of ActiveMQConfigurator |
Method Summary | |
---|---|
protected void |
configureActiveMQ(java.util.Properties properties)
Do the real job by filling application with ActiveMQ properties. |
void |
configureMessaging(java.lang.String brokerUrl)
Configure the ActiveMQ connection factory properties for given broker. |
java.util.Properties |
getActiveMQProperties()
Extract ActiveMQ related properties from ApplicationConfig. |
java.lang.String |
getActiveMQProperty(java.lang.String key)
Get a specified ActiveMQ property using its key |
ApplicationConfig |
getApplicationConfig()
|
void |
setApplicationConfig(ApplicationConfig config)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
protected static final java.lang.String AMQ_PROPERTIES_PREFIX
public static final java.lang.String AMQ_J2EE_COMPLIANCE
public static final java.lang.String AMQ_EMBEDDED_BROKER
public static final java.lang.String AMQ_BROKER_URL
public static final java.lang.String AMQ_BROKER_CONFIG
public static final java.lang.String AMQ_SETUP_PROPERTY
public static final java.lang.String AMQ_BROKER_CONFIG_PATH
Constructor Detail |
---|
public ActiveMQConfigurator()
Method Detail |
---|
public void setApplicationConfig(ApplicationConfig config)
config
- ApplicationConfig
instancepublic ApplicationConfig getApplicationConfig()
public java.lang.String getActiveMQProperty(java.lang.String key)
key
- The key of the property to retrieve
public java.util.Properties getActiveMQProperties()
public void configureMessaging(java.lang.String brokerUrl) throws BootstrapException
brokerUrl
- The Url of broker to configure connection factory for
BootstrapException
- if application conifguration cannot be updatedprotected void configureActiveMQ(java.util.Properties properties) throws BootstrapException
properties
- ActiveMQ specific properties (starting with "activemq.")
BootstrapException
- if configuration backup fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |