|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.component.jms.JmsConfiguration
org.apache.activemq.camel.component.ActiveMQConfiguration
public class ActiveMQConfiguration
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.camel.component.jms.JmsConfiguration |
---|
org.apache.camel.component.jms.JmsConfiguration.CamelJmsTemplate |
Field Summary |
---|
Fields inherited from class org.apache.camel.component.jms.JmsConfiguration |
---|
QUEUE_PREFIX, TEMP_QUEUE_PREFIX, TEMP_TOPIC_PREFIX, TOPIC_PREFIX |
Constructor Summary | |
---|---|
ActiveMQConfiguration()
|
Method Summary | |
---|---|
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()
|
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager()
|
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 |
setPassword(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(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. |
Methods inherited from class org.apache.camel.component.jms.JmsConfiguration |
---|
chooseMessageListenerContainerImplementation, configure, configuredQoS, configureMessageListenerContainer, copy, createDestinationResolver, createInOnlyTemplate, createInOutTemplate, createListenerConnectionFactory, createMessageListenerContainer, createTemplateConnectionFactory, defaultCacheLevel, getAcknowledgementMode, getAcknowledgementModeName, getCacheLevel, getCacheLevelName, getClientId, getConcurrentConsumers, getConnectionFactory, getConsumerType, getDestinationResolver, getDurableSubscriptionName, getExceptionListener, getIdleTaskExecutionLimit, getJmsKeyFormatStrategy, getJmsMessageType, getJmsOperations, getListenerConnectionFactory, getMaxConcurrentConsumers, getMaxMessagesPerTask, getMessageConverter, getMetadataJmsOperations, getPriority, getProviderMetadata, getReceiveTimeout, getRecoveryInterval, getReplyTo, getReplyToDestinationSelectorName, getRequestTimeout, getTaskExecutor, getTemplateConnectionFactory, getTimeToLive, getTransactionName, getTransactionTimeout, isAcceptMessagesWhileStopping, isAlwaysCopyMessage, isAutoStartup, isDeliveryPersistent, isDisableReplyTo, isEagerLoadingOfProperties, isExplicitQosEnabled, isExposeListenerSession, isLazyCreateTransactionManager, isMapJmsMessage, isMessageIdEnabled, isMessageTimestampEnabled, isPreserveMessageQos, isPubSubNoLocal, isReplyToDeliveryPersistent, isSubscriptionDurable, isTestConnectionOnStartup, isTransacted, isTransactedInOut, isTransferException, isTransferExchange, isUseMessageIDAsCorrelationID, setAcceptMessagesWhileStopping, setAcknowledgementMode, setAcknowledgementModeName, setAlwaysCopyMessage, setAutoStartup, setCacheLevel, setCacheLevelName, setClientId, setConcurrentConsumers, setConnectionFactory, setConsumerType, setDeliveryPersistent, setDestinationResolver, setDisableReplyTo, setDurableSubscriptionName, setEagerLoadingOfProperties, setExceptionListener, setExplicitQosEnabled, setExposeListenerSession, setIdleTaskExecutionLimit, setJmsKeyFormatStrategy, setJmsMessageType, setJmsOperations, setLazyCreateTransactionManager, setListenerConnectionFactory, setMapJmsMessage, setMaxConcurrentConsumers, setMaxMessagesPerTask, setMessageConverter, setMessageIdEnabled, setMessageTimestampEnabled, setMetadataJmsOperations, setPreserveMessageQos, setPriority, setProviderMetadata, setPubSubNoLocal, setReceiveTimeout, setRecoveryInterval, setReplyTo, setReplyToDeliveryPersistent, setReplyToDestinationSelectorName, setRequestTimeout, setSubscriptionDurable, setTaskExecutor, setTemplateConnectionFactory, setTestConnectionOnStartup, setTimeToLive, setTransacted, setTransactedInOut, setTransactionManager, setTransactionName, setTransactionTimeout, setTransferException, setTransferExchange, setUseMessageIDAsCorrelationID, supportBlobMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActiveMQConfiguration()
Method Detail |
---|
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 String getPassword()
public void setPassword(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.
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
getTransactionManager
in class org.apache.camel.component.jms.JmsConfiguration
protected org.springframework.transaction.PlatformTransactionManager createTransactionManager()
createTransactionManager
in class org.apache.camel.component.jms.JmsConfiguration
protected void setActiveMQComponent(ActiveMQComponent activeMQComponent)
protected ConnectionFactory createConnectionFactory()
createConnectionFactory
in class org.apache.camel.component.jms.JmsConfiguration
protected ConnectionFactory createPooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)
public static Class<?> loadClass(String name, ClassLoader loader) throws ClassNotFoundException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |