@Component(value="activemq")
public class ActiveMQComponent
extends org.apache.camel.component.jms.JmsComponent
| Constructor and Description |
|---|
ActiveMQComponent() |
ActiveMQComponent(ActiveMQConfiguration configuration) |
ActiveMQComponent(org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
static ActiveMQComponent |
activeMQComponent()
Creates an ActiveMQ
Component
|
static ActiveMQComponent |
activeMQComponent(String brokerURL)
Creates an ActiveMQ
Component connecting to the given
broker
URL
|
protected void |
addPooledConnectionFactoryService(org.apache.activemq.Service pooledConnectionFactoryService) |
protected void |
addSingleConnectionFactory(org.springframework.jms.connection.SingleConnectionFactory singleConnectionFactory) |
protected String |
convertPathToActualDestination(String path,
Map<String,Object> parameters) |
protected org.apache.camel.component.jms.JmsConfiguration |
createConfiguration() |
protected void |
doStart() |
protected void |
doStop() |
String |
getBrokerURL() |
boolean |
isTrustAllPackages() |
boolean |
isUsePooledConnection() |
boolean |
isUseSingleConnection() |
void |
setBrokerURL(String brokerURL)
Sets the broker URL to use to connect to ActiveMQ
|
void |
setConfiguration(org.apache.camel.component.jms.JmsConfiguration configuration)
Configuration of ActiveMQ
|
protected void |
setProperties(org.apache.camel.Endpoint bean,
Map<String,Object> parameters) |
void |
setTrustAllPackages(boolean trustAllPackages)
Define if all Java packages are trusted or not (for Java object JMS message types).
|
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 |
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, createConnectionFactory, createDestinationResolver, createEndpoint, createInOnlyTemplate, createInOutTemplate, createListenerConnectionFactory, createMessageListenerContainer, createQueueEndpoint, createTemplateConnectionFactory, createTemporaryQueueEndpoint, createTemporaryTopicEndpoint, createTopicEndpoint, createTransactionManager, defaultCacheLevel, doShutdown, getAcknowledgementMode, getAcknowledgementModeName, getAllowAdditionalHeaders, getAsyncStartStopExecutorService, getCacheLevel, getCacheLevelName, getClientId, getConcurrentConsumers, getConfiguration, 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, getQueueBrowseStrategy, getReceiveTimeout, getRecoveryInterval, getReplyTo, getReplyToCacheLevelName, getReplyToConcurrentConsumers, getReplyToDestinationSelectorName, getReplyToMaxConcurrentConsumers, getReplyToOnTimeoutMaxConcurrentConsumers, getReplyToOverride, getReplyToType, getRequestTimeout, getRequestTimeoutCheckerInterval, getSelector, getSubscriptionName, getTaskExecutor, getTemplateConnectionFactory, getTimeToLive, getTransactionManager, getTransactionName, getTransactionTimeout, getUsername, getWaitForProvisionCorrelationToBeUpdatedCounter, getWaitForProvisionCorrelationToBeUpdatedThreadSleepingTime, isAcceptMessagesWhileStopping, isAllowAutoWiredConnectionFactory, isAllowAutoWiredDestinationResolver, 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, isTestConnectionOnStartup, isTransacted, isTransferException, isTransferExchange, isUseMessageIDAsCorrelationID, jmsComponent, jmsComponent, jmsComponent, jmsComponentAutoAcknowledge, jmsComponentClientAcknowledge, jmsComponentTransacted, jmsComponentTransacted, setAcceptMessagesWhileStopping, setAcknowledgementMode, setAcknowledgementModeName, setAllowAdditionalHeaders, setAllowAutoWiredConnectionFactory, setAllowAutoWiredDestinationResolver, setAllowNullBody, setAllowReplyManagerQuickStop, setAllowSerializedHeaders, setAlwaysCopyMessage, setArtemisStreamingEnabled, setAsyncConsumer, setAsyncStartListener, setAsyncStopListener, setAutoStartup, setCacheLevel, setCacheLevelName, setClientId, setConcurrentConsumers, setConnectionFactory, 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, setQueueBrowseStrategy, setReceiveTimeout, setRecoveryInterval, setReplyTo, setReplyToCacheLevelName, setReplyToConcurrentConsumers, setReplyToDeliveryPersistent, setReplyToDestinationSelectorName, setReplyToMaxConcurrentConsumers, setReplyToOnTimeoutMaxConcurrentConsumers, setReplyToOverride, setReplyToSameDestinationAllowed, setReplyToType, setRequestTimeout, setRequestTimeoutCheckerInterval, setSelector, setStreamMessageTypeEnabled, setSubscriptionDurable, setSubscriptionName, setSubscriptionShared, setTaskExecutor, setTemplateConnectionFactory, setTestConnectionOnStartup, setTimeToLive, setTransacted, setTransactionManager, setTransactionName, setTransactionTimeout, setTransferException, setTransferExchange, setUseMessageIDAsCorrelationID, setUsername, setWaitForProvisionCorrelationToBeUpdatedCounter, setWaitForProvisionCorrelationToBeUpdatedThreadSleepingTime, supportBlobMessagegetHeaderFilterStrategy, setEndpointHeaderFilterStrategy, setHeaderFilterStrategyafterConfiguration, createEndpoint, createEndpoint, doInit, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIbuild, doBuild, doFail, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ActiveMQComponent()
public ActiveMQComponent(org.apache.camel.CamelContext context)
public ActiveMQComponent(ActiveMQConfiguration configuration)
public static ActiveMQComponent activeMQComponent()
public static ActiveMQComponent activeMQComponent(String brokerURL)
brokerURL - the URL to connect topublic String getBrokerURL()
public void setBrokerURL(String brokerURL)
public void setTrustAllPackages(boolean trustAllPackages)
public boolean isTrustAllPackages()
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 isUsePooledConnection()
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 isUseSingleConnection()
protected void setProperties(org.apache.camel.Endpoint bean,
Map<String,Object> parameters)
throws Exception
setProperties in class org.apache.camel.support.DefaultComponentExceptionprotected void addPooledConnectionFactoryService(org.apache.activemq.Service pooledConnectionFactoryService)
protected void addSingleConnectionFactory(org.springframework.jms.connection.SingleConnectionFactory singleConnectionFactory)
protected String convertPathToActualDestination(String path, Map<String,Object> parameters)
convertPathToActualDestination in class org.apache.camel.component.jms.JmsComponentprotected void doStart()
throws Exception
doStart in class org.apache.camel.component.jms.JmsComponentExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultComponentExceptionpublic void setConfiguration(org.apache.camel.component.jms.JmsConfiguration configuration)
setConfiguration in class org.apache.camel.component.jms.JmsComponentprotected org.apache.camel.component.jms.JmsConfiguration createConfiguration()
createConfiguration in class org.apache.camel.component.jms.JmsComponentApache Camel