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
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
asQueryString
(List<String> parameters) Turns a list of query string key=value strings into a query URL string of the form "?protected String
createTcpHostAndPortUrl
(String tcpHostAndPort) Allows us to add any TCP specific URI configurationsboolean
protected boolean
void
setFailoverProperties
(String failoverProperties) void
setMaxInactivityDuration
(Long maxInactivityDuration) void
setMaxReconnectDelay
(Long maxReconnectDelay) void
setTcpHostAndPort
(String tcpHostAndPort) void
setTcpHostAndPorts
(List<String> tcpHostAndPorts) void
setTcpProperties
(String tcpProperties)
-
Constructor Details
-
ActiveMQConnectionFactoryFactoryBean
public ActiveMQConnectionFactoryFactoryBean()
-
-
Method Details
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean
- Throws:
Exception
-
getBrokerURL
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in 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
-