|
||||||||||
| 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, org.apache.camel.component.jms.JmsConfiguration.CamelJmsTemplate102, org.apache.camel.component.jms.JmsConfiguration.MessageSentCallback |
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.component.jms.JmsConfiguration |
|---|
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, QUEUE_PREFIX, REPLYTO_TEMP_DEST_AFFINITY_PER_COMPONENT, REPLYTO_TEMP_DEST_AFFINITY_PER_ENDPOINT, REPLYTO_TEMP_DEST_AFFINITY_PER_PRODUCER, TEMP_QUEUE_PREFIX, TEMP_TOPIC_PREFIX, TOPIC_PREFIX, TRANSACTED |
| Constructor Summary | |
|---|---|
ActiveMQConfiguration()
|
|
| Method Summary | |
|---|---|
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()
|
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager()
|
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. |
| 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, getReplyToTempDestinationAffinity, getRequestMapPurgePollTimeMillis, 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, isUseVersion102, 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, setReplyToTempDestinationAffinity, setRequestMapPurgePollTimeMillis, setRequestTimeout, setSubscriptionDurable, setTaskExecutor, setTemplateConnectionFactory, setTestConnectionOnStartup, setTimeToLive, setTransacted, setTransactedInOut, setTransactionManager, setTransactionName, setTransactionTimeout, setTransferException, setTransferExchange, setUseMessageIDAsCorrelationID, setUseVersion102 |
| 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 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.
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
getTransactionManager in class org.apache.camel.component.jms.JmsConfigurationprotected org.springframework.transaction.PlatformTransactionManager createTransactionManager()
createTransactionManager in class org.apache.camel.component.jms.JmsConfigurationprotected void setActiveMQComponent(ActiveMQComponent activeMQComponent)
protected javax.jms.ConnectionFactory createConnectionFactory()
createConnectionFactory in class org.apache.camel.component.jms.JmsConfigurationprotected 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||