public class ActiveMQComponent extends org.apache.camel.component.jms.JmsComponent implements org.apache.camel.spi.EndpointCompleter
| 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(Service pooledConnectionFactoryService) |
protected void |
addSingleConnectionFactory(org.springframework.jms.connection.SingleConnectionFactory singleConnectionFactory) |
List<String> |
completeEndpointPath(org.apache.camel.ComponentConfiguration componentConfiguration,
String completionText) |
protected String |
convertPathToActualDestination(String path,
Map<String,Object> parameters) |
protected org.apache.camel.component.jms.JmsConfiguration |
createConfiguration() |
protected void |
createDestinationSource() |
protected void |
doStart() |
protected void |
doStop() |
boolean |
isExposeAllQueues() |
void |
setBrokerURL(String brokerURL)
Sets the broker URL to use to connect to ActiveMQ using the
ActiveMQ URI format
|
void |
setConfiguration(org.apache.camel.component.jms.JmsConfiguration configuration) |
void |
setExposeAllQueues(boolean exposeAllQueues)
If enabled this will cause all Queues in the ActiveMQ broker to be eagerly populated into the CamelContext
so that they can be easily browsed by any Camel tooling.
|
void |
setTrustAllPackages(boolean trustAllPackages) |
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)
Deprecated.
- use JmsComponent#setUsername(String)
|
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. |
createEndpoint, createQueueEndpoint, createTemporaryQueueEndpoint, createTemporaryTopicEndpoint, createTopicEndpoint, doShutdown, getAsyncStartStopExecutorService, getConfiguration, getMessageCreatedStrategy, getQueueBrowseStrategy, getWaitForProvisionCorrelationToBeUpdatedCounter, getWaitForProvisionCorrelationToBeUpdatedThreadSleepingTime, isAllowAutoWiredConnectionFactory, isAllowAutoWiredDestinationResolver, jmsComponent, jmsComponent, jmsComponent, jmsComponentAutoAcknowledge, jmsComponentClientAcknowledge, jmsComponentTransacted, jmsComponentTransacted, setAcceptMessagesWhileStopping, setAcknowledgementMode, setAcknowledgementModeName, setAllowNullBody, setAllowReplyManagerQuickStop, setAlwaysCopyMessage, setApplicationContext, setAsyncConsumer, setAsyncStartListener, setAsyncStopListener, setAutoStartup, setCacheLevel, setCacheLevelName, setClientId, setConcurrentConsumers, setConnectionFactory, setCorrelationProperty, setDefaultTaskExecutorType, setDeliveryMode, setDeliveryPersistent, setDestinationResolver, setDurableSubscriptionName, setEagerLoadingOfProperties, setErrorHandler, setErrorHandlerLoggingLevel, setErrorHandlerLogStackTrace, setExceptionListener, setExplicitQosEnabled, setExposeListenerSession, setForceSendOriginalMessage, setIdleConsumerLimit, setIdleTaskExecutionLimit, setIncludeAllJMSXProperties, setIncludeSentJMSMessageID, setJmsKeyFormatStrategy, setJmsKeyFormatStrategy, setJmsOperations, setLazyCreateTransactionManager, setMapJmsMessage, setMaxConcurrentConsumers, setMaxMessagesPerTask, setMessageConverter, setMessageCreatedStrategy, setMessageIdEnabled, setMessageTimestampEnabled, setPassword, setPreserveMessageQos, setPriority, setPubSubNoLocal, setQueueBrowseStrategy, setReceiveTimeout, setRecoveryInterval, setReplyOnTimeoutToMaxConcurrentConsumers, setReplyToCacheLevelName, setReplyToConcurrentConsumers, setReplyToMaxConcurrentConsumers, setReplyToType, setRequestTimeout, setRequestTimeoutCheckerInterval, setSubscriptionDurable, setTaskExecutor, setTestConnectionOnStartup, setTimeToLive, setTransacted, setTransactionManager, setTransactionName, setTransactionTimeout, setTransferException, setTransferExchange, setTransferFault, setUseMessageIDAsCorrelationID, setUsername, setWaitForProvisionCorrelationToBeUpdatedCounter, setWaitForProvisionCorrelationToBeUpdatedThreadSleepingTimegetHeaderFilterStrategy, setEndpointHeaderFilterStrategy, setHeaderFilterStrategycreateComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClassafterConfiguration, createConfiguration, createEndpoint, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, isResolvePropertyPlaceholders, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, setProperties, setResolvePropertyPlaceholders, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIpublic 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 void setBrokerURL(String brokerURL)
public void setUserName(String userName)
JmsComponent.setUsername(String)public void setTrustAllPackages(boolean trustAllPackages)
public boolean isExposeAllQueues()
public void setExposeAllQueues(boolean exposeAllQueues)
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 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.protected void addPooledConnectionFactoryService(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 createDestinationSource()
protected void doStop() throws Exception
doStop in class org.apache.camel.impl.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.JmsComponentpublic List<String> completeEndpointPath(org.apache.camel.ComponentConfiguration componentConfiguration, String completionText)
completeEndpointPath in interface org.apache.camel.spi.EndpointCompleterCopyright © 2005–2018 The Apache Software Foundation. All rights reserved.