public class ActiveMQConfiguration extends org.apache.camel.component.jms.JmsConfiguration
| Constructor and Description |
|---|
ActiveMQConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected ConnectionFactory |
createConnectionFactory() |
protected ConnectionFactory |
createPooledConnectionFactory(ActiveMQConnectionFactory connectionFactory) |
protected org.springframework.transaction.PlatformTransactionManager |
createTransactionManager()
Factory method to create a default transaction manager if one is not specified
|
String |
getBrokerURL() |
String |
getPassword() |
String |
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 using the
ActiveMQ URI format
|
void |
setPassword(String password)
Sets the password/passcode used to login to ActiveMQ
|
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)
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, getMessageCreatedStrategy, getMessageListenerContainerFactory, getMetadataJmsOperations, getPriority, getProviderMetadata, getReceiveTimeout, getRecoveryInterval, getReplyTo, getReplyToCacheLevelName, getReplyToConcurrentConsumers, getReplyToDestinationSelectorName, getReplyToMaxConcurrentConsumers, getReplyToOverride, getReplyToType, getRequestTimeout, getRequestTimeoutCheckerInterval, getSelector, 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, isReplyToSameDestinationAllowed, 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, setMessageCreatedStrategy, setMessageIdEnabled, setMessageListenerContainerFactory, setMessageTimestampEnabled, setMetadataJmsOperations, setPreserveMessageQos, setPriority, setProviderMetadata, setPubSubNoLocal, setReceiveTimeout, setRecoveryInterval, setReplyTo, setReplyToCacheLevelName, setReplyToConcurrentConsumers, setReplyToDeliveryPersistent, setReplyToDestinationSelectorName, setReplyToMaxConcurrentConsumers, setReplyToOverride, setReplyToSameDestinationAllowed, setReplyToType, setRequestTimeout, setRequestTimeoutCheckerInterval, setSelector, setSubscriptionDurable, setTaskExecutor, setTemplateConnectionFactory, setTestConnectionOnStartup, setTimeToLive, setTransacted, setTransactedInOut, setTransactionManager, setTransactionName, setTransactionTimeout, setTransferException, setTransferExchange, setUseMessageIDAsCorrelationID, supportBlobMessagepublic ActiveMQConfiguration()
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)
public String getPassword()
public void setPassword(String 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 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. Note that this requires an extra dependency on commons-pool2.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)
protected ConnectionFactory createConnectionFactory()
createConnectionFactory in class org.apache.camel.component.jms.JmsConfigurationprotected ConnectionFactory createPooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)
public static Class<?> loadClass(String name, ClassLoader loader) throws ClassNotFoundException
ClassNotFoundExceptionCopyright © 2005–2017 The Apache Software Foundation. All rights reserved.