|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemq.spring.BrokerFactoryBean
org.figure8.join.core.messaging.ConfigurableBrokerFactoryBean
public class ConfigurableBrokerFactoryBean
This factory is an extension of the Spring BrokerFactory
provided by ActiveMQ. This configurable broker factory only creates broker
if we are on the asynchronous side of the application. It also replaces
the URL of the TCP transport layer provided into the configuration file by
the one configured by application administrator (during the setup process,
through the ActiveMQConfigurator helper object).
ApplicationConfig,
ActiveMQConfigurator| Field Summary | |
|---|---|
protected org.activemq.broker.BrokerContainer |
broker
The wrapped ActiveMQ broker container. |
| Constructor Summary | |
|---|---|
ConfigurableBrokerFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Override of broker creation method from ActiveMQ BrokerFactory. |
void |
destroy()
Stop the wrapped broker before destroy. |
java.lang.Object |
getObject()
We must ovveride this method cause broker container is private into ActiveMQ BrokerFactoryBean. |
void |
setActiveMQConfigurator(ActiveMQConfigurator configurator)
|
protected void |
updateBrokerTransportChannelUrl()
Update the url of the TCP trasnport server channel of the previously created borker. |
| Methods inherited from class org.activemq.spring.BrokerFactoryBean |
|---|
getConfig, getObjectType, isSingleton, setConfig |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.activemq.broker.BrokerContainer broker
| Constructor Detail |
|---|
public ConfigurableBrokerFactoryBean()
| Method Detail |
|---|
public void setActiveMQConfigurator(ActiveMQConfigurator configurator)
configurator - Helper for configuring connection factory
protected void updateBrokerTransportChannelUrl()
throws java.lang.Exception
ActiveMQConfigurator.
java.lang.Exception
public java.lang.Object getObject()
throws java.lang.Exception
BrokerFactoryBean.
getObject in interface org.springframework.beans.factory.FactoryBeangetObject in class org.activemq.spring.BrokerFactoryBeanjava.lang.Exception - this does not happen (return null if no object)
public void afterPropertiesSet()
throws java.lang.Exception
ActiveMQConfigurator.
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.activemq.spring.BrokerFactoryBeanjava.lang.Exception - IllegalArgumentException if broker factory is not well configured
public void destroy()
throws java.lang.Exception
BrokerFactoryBean.
destroy in interface org.springframework.beans.factory.DisposableBeandestroy in class org.activemq.spring.BrokerFactoryBeanjava.lang.Exception - if something wrong occurs during broker stop
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||