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(org.apache.activemq.spring.ActiveMQConnectionFactory connectionFactory) |
protected org.springframework.transaction.PlatformTransactionManager |
createTransactionManager()
Factory method to create a default transaction manager if one is not specified
|
String |
getBrokerURL() |
String |
getUserName() |
boolean |
isUsePooledConnection() |
boolean |
isUseSingleConnection() |
static Class<?> |
loadClass(String name,
ClassLoader loader) |
protected void |
setActiveMQComponent(ActiveMQComponent activeMQComponent) |
void |
setBrokerURL(String brokerURL)
Sets the broker URL to use to connect to ActiveMQ using the
ActiveMQ URI format
|
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(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, getAllowAdditionalHeaders, getArtemisConsumerPriority, getCacheLevel, getCacheLevelName, getClientId, getConcurrentConsumers, getConnectionFactory, getConsumerType, getCorrelationProperty, getDefaultTaskExecutorType, getDeliveryDelay, getDeliveryMode, getDestinationResolver, getDurableSubscriptionName, getErrorHandler, getErrorHandlerLoggingLevel, getExceptionListener, getIdleConsumerLimit, getIdleTaskExecutionLimit, getJmsKeyFormatStrategy, getJmsMessageType, getJmsOperations, getListenerConnectionFactory, getMaxConcurrentConsumers, getMaxMessagesPerTask, getMessageConverter, getMessageCreatedStrategy, getMessageListenerContainerFactory, getMetadataJmsOperations, getPassword, getPriority, getProviderMetadata, getReceiveTimeout, getRecoveryInterval, getReplyTo, getReplyToCacheLevelName, getReplyToConcurrentConsumers, getReplyToDestinationSelectorName, getReplyToMaxConcurrentConsumers, getReplyToOnTimeoutMaxConcurrentConsumers, getReplyToOverride, getReplyToType, getRequestTimeout, getRequestTimeoutCheckerInterval, getSelector, getSubscriptionName, getTaskExecutor, getTemplateConnectionFactory, getTimeToLive, getTransactionManager, getTransactionName, getTransactionTimeout, getUsername, getWaitForProvisionCorrelationToBeUpdatedCounter, getWaitForProvisionCorrelationToBeUpdatedThreadSleepingTime, isAcceptMessagesWhileStopping, isAllowNullBody, isAllowReplyManagerQuickStop, isAllowSerializedHeaders, isAlwaysCopyMessage, isArtemisStreamingEnabled, isAsyncConsumer, isAsyncStartListener, isAsyncStopListener, isAutoStartup, isDeliveryPersistent, isDisableReplyTo, isDisableTimeToLive, isEagerLoadingOfProperties, isErrorHandlerLogStackTrace, isExplicitQosEnabled, isExposeListenerSession, isForceSendOriginalMessage, isFormatDateHeadersToIso8601, isIncludeAllJMSXProperties, isIncludeSentJMSMessageID, isLazyCreateTransactionManager, isMapJmsMessage, isMessageIdEnabled, isMessageTimestampEnabled, isPreserveMessageQos, isPubSubNoLocal, isReplyToDeliveryPersistent, isReplyToSameDestinationAllowed, isStreamMessageTypeEnabled, isSubscriptionDurable, isSubscriptionShared, isTestConnectionOnStartup, isTransacted, isTransactedInOut, isTransferException, isTransferExchange, isTransferFault, isUseMessageIDAsCorrelationID, setAcceptMessagesWhileStopping, setAcknowledgementMode, setAcknowledgementModeName, setAllowAdditionalHeaders, setAllowNullBody, setAllowReplyManagerQuickStop, setAllowSerializedHeaders, setAlwaysCopyMessage, setArtemisConsumerPriority, setArtemisStreamingEnabled, setAsyncConsumer, setAsyncStartListener, setAsyncStopListener, setAutoStartup, setCacheLevel, setCacheLevelName, setClientId, setConcurrentConsumers, setConnectionFactory, setConsumerType, setCorrelationProperty, setDefaultTaskExecutorType, setDeliveryDelay, setDeliveryMode, setDeliveryPersistent, setDestinationResolver, setDisableReplyTo, setDisableTimeToLive, setDurableSubscriptionName, setEagerLoadingOfProperties, setErrorHandler, setErrorHandlerLoggingLevel, setErrorHandlerLogStackTrace, setExceptionListener, setExplicitQosEnabled, setExposeListenerSession, setForceSendOriginalMessage, setFormatDateHeadersToIso8601, setIdleConsumerLimit, setIdleTaskExecutionLimit, setIncludeAllJMSXProperties, setIncludeSentJMSMessageID, setJmsKeyFormatStrategy, setJmsMessageType, setJmsOperations, setLazyCreateTransactionManager, setListenerConnectionFactory, setMapJmsMessage, setMaxConcurrentConsumers, setMaxMessagesPerTask, setMessageConverter, setMessageCreatedStrategy, setMessageIdEnabled, setMessageListenerContainerFactory, setMessageTimestampEnabled, setMetadataJmsOperations, setPassword, setPreserveMessageQos, setPriority, setProviderMetadata, setPubSubNoLocal, setReceiveTimeout, setRecoveryInterval, setReplyTo, setReplyToCacheLevelName, setReplyToConcurrentConsumers, setReplyToDeliveryPersistent, setReplyToDestinationSelectorName, setReplyToMaxConcurrentConsumers, setReplyToOnTimeoutMaxConcurrentConsumers, setReplyToOverride, setReplyToSameDestinationAllowed, setReplyToType, setRequestTimeout, setRequestTimeoutCheckerInterval, setSelector, setStreamMessageTypeEnabled, setSubscriptionDurable, setSubscriptionName, setSubscriptionShared, setTaskExecutor, setTemplateConnectionFactory, setTestConnectionOnStartup, setTimeToLive, setTransacted, setTransactedInOut, setTransactionManager, setTransactionName, setTransactionTimeout, setTransferException, setTransferExchange, setTransferFault, setUseMessageIDAsCorrelationID, setUsername, setWaitForProvisionCorrelationToBeUpdatedCounter, setWaitForProvisionCorrelationToBeUpdatedThreadSleepingTime, supportBlobMessage
public String getBrokerURL()
public void setBrokerURL(String brokerURL)
brokerURL
- the URL of the broker.public boolean isUseSingleConnection()
public String getUserName()
public void setUserName(String userName)
userName
- 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 false and a pooled 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 true. Note that this 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(org.apache.activemq.spring.ActiveMQConnectionFactory connectionFactory)
public static Class<?> loadClass(String name, ClassLoader loader) throws ClassNotFoundException
ClassNotFoundException
Apache Camel