org.apache.activemq.camel.component
Class ActiveMQConfiguration

java.lang.Object
  extended by org.apache.camel.component.jms.JmsConfiguration
      extended by org.apache.activemq.camel.component.ActiveMQConfiguration
All Implemented Interfaces:
java.lang.Cloneable

public class ActiveMQConfiguration
extends org.apache.camel.component.jms.JmsConfiguration


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  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
configure, configuredQoS, configureMessageListenerContainer, copy, createDestinationResolver, createInOnlyTemplate, createInOutTemplate, createListenerConnectionFactory, createMessageListenerContainer, createTemplateConnectionFactory, defaultCacheLevel, getAcknowledgementMode, getAcknowledgementModeName, getCacheLevel, getCacheLevelName, getClientId, getConcurrentConsumers, getConnectionFactory, 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, isForceSendOriginalMessage, isLazyCreateTransactionManager, isMapJmsMessage, isMessageIdEnabled, isMessageTimestampEnabled, isPreserveMessageQos, isPubSubNoLocal, isReplyToDeliveryPersistent, isSubscriptionDurable, isTestConnectionOnStartup, isTransacted, isTransactedInOut, isTransferException, isTransferExchange, isUseMessageIDAsCorrelationID, setAcceptMessagesWhileStopping, setAcknowledgementMode, setAcknowledgementModeName, setAlwaysCopyMessage, setAutoStartup, setCacheLevel, setCacheLevelName, setClientId, setConcurrentConsumers, setConnectionFactory, setDeliveryPersistent, setDestinationResolver, setDisableReplyTo, setDurableSubscriptionName, setEagerLoadingOfProperties, setExceptionListener, setExplicitQosEnabled, setExposeListenerSession, setForceSendOriginalMessage, 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

ActiveMQConfiguration

public ActiveMQConfiguration()
Method Detail

getBrokerURL

public java.lang.String getBrokerURL()

setBrokerURL

public void setBrokerURL(java.lang.String brokerURL)
Sets the broker URL to use to connect to ActiveMQ using the ActiveMQ URI format

Parameters:
brokerURL - the URL of the broker.

isUseSingleConnection

public boolean isUseSingleConnection()

getUserName

public java.lang.String getUserName()

setUserName

public void setUserName(java.lang.String userName)
Sets the username to be used to login to ActiveMQ

Parameters:
userName -

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)
Sets the password/passcode used to login to ActiveMQ

Parameters:
password -

setUseSingleConnection

public 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.

The default value is true so that a single connection is used by default.

Parameters:
useSingleConnection -

isUsePooledConnection

public boolean isUsePooledConnection()

setUsePooledConnection

public 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.

The default value is false by default as it requires an extra dependency on commons-pool.


getTransactionManager

public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
Overrides:
getTransactionManager in class org.apache.camel.component.jms.JmsConfiguration

createTransactionManager

protected org.springframework.transaction.PlatformTransactionManager createTransactionManager()
Factory method to create a default transaction manager if one is not specified

Overrides:
createTransactionManager in class org.apache.camel.component.jms.JmsConfiguration

setActiveMQComponent

protected void setActiveMQComponent(ActiveMQComponent activeMQComponent)

createConnectionFactory

protected javax.jms.ConnectionFactory createConnectionFactory()
Overrides:
createConnectionFactory in class org.apache.camel.component.jms.JmsConfiguration

createPooledConnectionFactory

protected javax.jms.ConnectionFactory createPooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)

loadClass

public static java.lang.Class<?> loadClass(java.lang.String name,
                                           java.lang.ClassLoader loader)
                                    throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.