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.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()
Deprecated.
- use JmsConfiguration#getUsername()
|
boolean |
isTrustAllPackages() |
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 broker.
|
void |
setConnectionFactory(javax.jms.ConnectionFactory connectionFactory) |
void |
setTrustAllPackages(boolean trustAllPackages)
ObjectMessage objects depend on Java serialization of marshal/unmarshal object payload.
|
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)
Deprecated.
- use JmsConfiguration#setUsername(String)
|
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, getEagerPoisonBody, getErrorHandler, getErrorHandlerLoggingLevel, getExceptionListener, getExplicitQosEnabled, getIdleConsumerLimit, getIdleTaskExecutionLimit, getJmsKeyFormatStrategy, getJmsMessageType, getJmsOperations, getListenerConnectionFactory, getMaxConcurrentConsumers, getMaxMessagesPerTask, getMessageConverter, getMessageCreatedStrategy, getMessageListenerContainerFactory, getOrCreateConnectionFactory, getOrCreateListenerConnectionFactory, getOrCreateTemplateConnectionFactory, getOrCreateTransactionManager, getPassword, getPriority, 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, isSynchronous, isTestConnectionOnStartup, isTransacted, isTransactedInOut, isTransferException, isTransferExchange, isUseMessageIDAsCorrelationID, setAcceptMessagesWhileStopping, setAcknowledgementMode, setAcknowledgementModeName, setAllowAdditionalHeaders, setAllowNullBody, setAllowReplyManagerQuickStop, setAllowSerializedHeaders, setAlwaysCopyMessage, setArtemisConsumerPriority, setArtemisStreamingEnabled, setAsyncConsumer, setAsyncStartListener, setAsyncStopListener, setAutoStartup, setCacheLevel, setCacheLevelName, setClientId, setConcurrentConsumers, setConsumerType, setCorrelationProperty, setDefaultTaskExecutorType, setDeliveryDelay, setDeliveryMode, setDeliveryPersistent, setDestinationResolver, setDisableReplyTo, setDisableTimeToLive, setDurableSubscriptionName, setEagerLoadingOfProperties, setEagerPoisonBody, 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, setPassword, setPreserveMessageQos, setPriority, setPubSubNoLocal, setReceiveTimeout, setRecoveryInterval, setReplyTo, setReplyToCacheLevelName, setReplyToConcurrentConsumers, setReplyToDeliveryPersistent, setReplyToDestinationSelectorName, setReplyToMaxConcurrentConsumers, setReplyToOnTimeoutMaxConcurrentConsumers, setReplyToOverride, setReplyToSameDestinationAllowed, setReplyToType, setRequestTimeout, setRequestTimeoutCheckerInterval, setSelector, setStreamMessageTypeEnabled, setSubscriptionDurable, setSubscriptionName, setSubscriptionShared, setSynchronous, setTaskExecutor, setTemplateConnectionFactory, setTestConnectionOnStartup, setTimeToLive, setTransacted, setTransactedInOut, setTransactionManager, setTransactionName, setTransactionTimeout, setTransferException, setTransferExchange, setUseMessageIDAsCorrelationID, setUsername, setWaitForProvisionCorrelationToBeUpdatedCounter, setWaitForProvisionCorrelationToBeUpdatedThreadSleepingTime, supportBlobMessagepublic String getBrokerURL()
public void setBrokerURL(String brokerURL)
public boolean isUseSingleConnection()
@Deprecated public String getUserName()
JmsConfiguration.getUsername()@Deprecated public void setUserName(String userName)
JmsConfiguration.setUsername(String)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.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.public boolean isTrustAllPackages()
public void setTrustAllPackages(boolean trustAllPackages)
protected org.springframework.transaction.PlatformTransactionManager createTransactionManager()
createTransactionManager in class org.apache.camel.component.jms.JmsConfigurationprotected void setActiveMQComponent(ActiveMQComponent activeMQComponent)
public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
setConnectionFactory in class org.apache.camel.component.jms.JmsConfigurationprotected javax.jms.ConnectionFactory createConnectionFactory()
createConnectionFactory in class org.apache.camel.component.jms.JmsConfigurationprotected javax.jms.ConnectionFactory createPooledConnectionFactory(org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
public static Class<?> loadClass(String name, ClassLoader loader) throws ClassNotFoundException
ClassNotFoundExceptionApache Camel