public class ActiveMQConfiguration
extends org.apache.camel.component.jms.JmsConfiguration
Constructor and Description |
---|
ActiveMQConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected javax.jms.ConnectionFactory |
createConnectionFactory() |
protected javax.jms.ConnectionFactory |
createPooledConnectionFactory(ActiveMQConnectionFactory connectionFactory) |
protected org.springframework.transaction.PlatformTransactionManager |
createTransactionManager()
Factory method to create a default transaction manager if one is not specified
|
java.lang.String |
getBrokerURL() |
java.lang.String |
getPassword() |
java.lang.String |
getUserName() |
boolean |
isUsePooledConnection() |
boolean |
isUseSingleConnection() |
static java.lang.Class<?> |
loadClass(java.lang.String name,
java.lang.ClassLoader loader) |
protected void |
setActiveMQComponent(ActiveMQComponent activeMQComponent) |
void |
setBrokerURL(java.lang.String brokerURL)
Sets the broker URL to use to connect to ActiveMQ using the
ActiveMQ URI format
|
void |
setPassword(java.lang.String password)
Sets the password/passcode used to login to ActiveMQ
|
void |
setUsePooledConnection(boolean usePooledConnection)
Enables or disables whether a PooledConnectionFactory will be used so that when
messages are sent to ActiveMQ from outside of a message consuming thread, pooling will be used rather
than the default with the Spring
JmsTemplate which will create a new connection, session, producer
for each message then close them all down again. |
void |
setUserName(java.lang.String userName)
Sets the username to be used to login to ActiveMQ
|
void |
setUseSingleConnection(boolean useSingleConnection)
Enables or disables whether a Spring
SingleConnectionFactory will be used so that when
messages are sent to ActiveMQ from outside of a message consuming thread, pooling will be used rather
than the default with the Spring JmsTemplate which will create a new connection, session, producer
for each message then close them all down again. |
chooseMessageListenerContainerImplementation, configuredQoS, configureMessageListener, configureMessageListenerContainer, copy, createDestinationResolver, createInOnlyTemplate, createInOutTemplate, createListenerConnectionFactory, createMessageListenerContainer, createTemplateConnectionFactory, defaultCacheLevel, getAcknowledgementMode, getAcknowledgementModeName, getCacheLevel, getCacheLevelName, getClientId, getConcurrentConsumers, getConnectionFactory, getConsumerType, getDefaultTaskExecutorType, getDeliveryMode, getDestinationResolver, getDurableSubscriptionName, getErrorHandler, getErrorHandlerLoggingLevel, getExceptionListener, getIdleConsumerLimit, getIdleTaskExecutionLimit, getJmsKeyFormatStrategy, getJmsMessageType, getJmsOperations, getListenerConnectionFactory, getMaxConcurrentConsumers, getMaxMessagesPerTask, getMessageConverter, getMessageListenerContainerFactory, getMetadataJmsOperations, getPriority, getProviderMetadata, getReceiveTimeout, getRecoveryInterval, getReplyTo, getReplyToCacheLevelName, getReplyToDestinationSelectorName, getReplyToType, getRequestTimeout, getRequestTimeoutCheckerInterval, getTaskExecutor, getTemplateConnectionFactory, getTimeToLive, getTransactionManager, getTransactionName, getTransactionTimeout, isAcceptMessagesWhileStopping, isAllowNullBody, isAlwaysCopyMessage, isAsyncConsumer, isAsyncStartListener, isAsyncStopListener, isAutoStartup, isDeliveryPersistent, isDisableReplyTo, isDisableTimeToLive, isEagerLoadingOfProperties, isErrorHandlerLogStackTrace, isExplicitQosEnabled, isExposeListenerSession, isForceSendOriginalMessage, isIncludeAllJMSXProperties, isIncludeSentJMSMessageID, isLazyCreateTransactionManager, isMapJmsMessage, isMessageIdEnabled, isMessageTimestampEnabled, isPreserveMessageQos, isPubSubNoLocal, isReplyToDeliveryPersistent, isSubscriptionDurable, isTestConnectionOnStartup, isTransacted, isTransactedInOut, isTransferException, isTransferExchange, isUseMessageIDAsCorrelationID, setAcceptMessagesWhileStopping, setAcknowledgementMode, setAcknowledgementModeName, setAllowNullBody, setAlwaysCopyMessage, setAsyncConsumer, setAsyncStartListener, setAsyncStopListener, setAutoStartup, setCacheLevel, setCacheLevelName, setClientId, setConcurrentConsumers, setConnectionFactory, setConsumerType, setDefaultTaskExecutorType, setDeliveryMode, setDeliveryPersistent, setDestinationResolver, setDisableReplyTo, setDisableTimeToLive, setDurableSubscriptionName, setEagerLoadingOfProperties, setErrorHandler, setErrorHandlerLoggingLevel, setErrorHandlerLogStackTrace, setExceptionListener, setExplicitQosEnabled, setExposeListenerSession, setForceSendOriginalMessage, setIdleConsumerLimit, setIdleTaskExecutionLimit, setIncludeAllJMSXProperties, setIncludeSentJMSMessageID, setJmsKeyFormatStrategy, setJmsMessageType, setJmsOperations, setLazyCreateTransactionManager, setListenerConnectionFactory, setMapJmsMessage, setMaxConcurrentConsumers, setMaxMessagesPerTask, setMessageConverter, setMessageIdEnabled, setMessageListenerContainerFactory, setMessageTimestampEnabled, setMetadataJmsOperations, setPreserveMessageQos, setPriority, setProviderMetadata, setPubSubNoLocal, setReceiveTimeout, setRecoveryInterval, setReplyTo, setReplyToCacheLevelName, setReplyToDeliveryPersistent, setReplyToDestinationSelectorName, setReplyToType, setRequestTimeout, setRequestTimeoutCheckerInterval, setSubscriptionDurable, setTaskExecutor, setTemplateConnectionFactory, setTestConnectionOnStartup, setTimeToLive, setTransacted, setTransactedInOut, setTransactionManager, setTransactionName, setTransactionTimeout, setTransferException, setTransferExchange, setUseMessageIDAsCorrelationID, supportBlobMessage
public java.lang.String getBrokerURL()
public void setBrokerURL(java.lang.String brokerURL)
brokerURL
- the URL of the broker.public boolean isUseSingleConnection()
public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName
- public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- public void setUseSingleConnection(boolean useSingleConnection)
SingleConnectionFactory
will be used so that when
messages are sent to ActiveMQ from outside of a message consuming thread, pooling will be used rather
than the default with the Spring JmsTemplate
which will create a new connection, session, producer
for each message then close them all down again.
The default value is true so that a single connection is used by default.useSingleConnection
- public boolean isUsePooledConnection()
public void setUsePooledConnection(boolean usePooledConnection)
JmsTemplate
which will create a new connection, session, producer
for each message then close them all down again.
The default value is false by default as it requires an extra dependency on commons-pool.protected org.springframework.transaction.PlatformTransactionManager createTransactionManager()
createTransactionManager
in class org.apache.camel.component.jms.JmsConfiguration
protected void setActiveMQComponent(ActiveMQComponent activeMQComponent)
protected javax.jms.ConnectionFactory createConnectionFactory()
createConnectionFactory
in class org.apache.camel.component.jms.JmsConfiguration
protected javax.jms.ConnectionFactory createPooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)
public static java.lang.Class<?> loadClass(java.lang.String name, java.lang.ClassLoader loader) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.