Package org.apache.activemq.spring
Class ActiveMQConnectionFactoryFactoryBean
java.lang.Object
org.apache.activemq.spring.ActiveMQConnectionFactoryFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean
public class ActiveMQConnectionFactoryFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean
A helper class for creating a failover configured
ActiveMQConnectionFactory
which supports one or more TCP based hostname/ports which can all be configured in a
consistent way without too much URL hacking.-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringasQueryString(List<String> parameters) Turns a list of query string key=value strings into a query URL string of the form "?protected StringcreateTcpHostAndPortUrl(String tcpHostAndPort) Allows us to add any TCP specific URI configurationsbooleanprotected booleanvoidsetFailoverProperties(String failoverProperties) voidsetMaxInactivityDuration(Long maxInactivityDuration) voidsetMaxReconnectDelay(Long maxReconnectDelay) voidsetTcpHostAndPort(String tcpHostAndPort) voidsetTcpHostAndPorts(List<String> tcpHostAndPorts) voidsetTcpProperties(String tcpProperties)
-
Constructor Details
-
ActiveMQConnectionFactoryFactoryBean
public ActiveMQConnectionFactoryFactoryBean()
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean- Throws:
Exception
-
getBrokerURL
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean
-
getTcpHostAndPorts
-
setTcpHostAndPorts
-
setTcpHostAndPort
-
getMaxInactivityDuration
-
setMaxInactivityDuration
-
getTcpProperties
-
setTcpProperties
-
getMaxReconnectDelay
-
setMaxReconnectDelay
-
getFailoverProperties
-
setFailoverProperties
-
asQueryString
Turns a list of query string key=value strings into a query URL string of the form "?a=x&b=y" -
createTcpHostAndPortUrl
Allows us to add any TCP specific URI configurations -
notEmpty
-