brokerUrl (common) | The connection URI of the broker in the Qpid JMS format, such as amqp://localhost:5672, amqps://broker:5671 or failover:(amqp://host1:5672,amqp://host2:5672), with Qpid JMS options in its query. The component creates a Qpid JMS connection factory from it, which replaces the connectionFactory of the component. The host, port, useSsl, keystore and truststore options are then not used. | | String |
cacheConnection (common) | Whether the producers send over one shared connection to the broker, when the component creates the connection factory: from brokerUrl, from the host, port, username, password and useSsl options, or with the amqpComponent factory methods. Turn it off to open and close a connection for every message sent. The consumers keep their own connections. A connectionFactory that you set yourself, on the component or on the endpoint, is used as it is. | true | boolean |
clientId (common) | Sets the JMS client ID to use. Note that this value, if specified, must be unique and can only be used by a single JMS connection instance. It is typically only required for durable topic subscriptions with JMS 1.1. | | String |
connectionFactory (common) | The jakarta.jms.ConnectionFactory that the consumers and producers create their JMS connections with. When none is configured, the component uses the single ConnectionFactory found in the registry (see allowAutoWiredConnectionFactory). | | ConnectionFactory |
disableReplyTo (common) | Whether to disable request/reply. A consumer then ignores the JMSReplyTo of the received messages and sends no reply, for example when another part of the application sends the reply, or when Camel routes the messages from one message broker to another. A producer sends the messages as InOnly and without JMSReplyTo, also when the exchange is InOut. | false | boolean |
durableSubscriptionName (common) | The name of a durable topic subscription. Setting it makes the subscription durable, as subscriptionDurable together with subscriptionName does (subscriptionName takes precedence for the name). A durable subscription that is not shared also requires the clientId option. | | String |
host (common) | The host name or IP address of the AMQP broker, default localhost. The component connects to amqp://host:port (amqps:// with useSsl) when neither brokerUrl nor connectionFactory is set. | | String |
includeAmqpAnnotations (common) | Whether the message annotations of a received AMQP message become message headers, named JMS_AMQP_MA_ followed by the annotation name. The delivery annotations are not mapped, as the Qpid JMS client gives no access to them. | false | boolean |
jmsMessageType (common) | The JMS message type (Bytes, Map, Object, Stream or Text) of the messages that the producer sends (also the requests of request/reply) and of the replies that the consumer sends, instead of the type that Camel chooses from the message body. The CamelJmsMessageType header overrides it. Not used when receiving, as a received message keeps the type that its sender chose. Object requires objectMessageEnabled. -
Bytes -
Map -
Object -
Stream -
Text | | JmsMessageType |
keyStoreLocation (common) | The path of the keystore file with the client certificate and key that the client presents to the broker over TLS (the transport.keyStoreLocation option of Qpid JMS). Used only with useSsl. When not set, Qpid JMS uses the javax.net.ssl.keyStore system property. | | String |
keyStoreType (common) | The type of the keystore file, such as JKS or PKCS12. Used only with useSsl and keyStoreLocation. | JKS | String |
port (common) | The port of the AMQP broker, default 5672, also with useSsl. It is used with host when neither brokerUrl nor connectionFactory is set. | | Integer |
replyTo (common) | The reply destination. A producer doing request/reply over JMS sets it as JMSReplyTo of the request and receives the replies from it (see replyToType); without it, a temporary queue is used. A consumer sends its replies to it, instead of to the JMSReplyTo of the received message. | | String |
testConnectionOnStartup (common) | Whether the consumers and producers create (and close) a JMS connection when they start, so that Camel fails to start, with an exception, when the JMS broker cannot be reached, instead of starting with failed connections. | false | boolean |
trustStoreLocation (common) | The path of the truststore file with the certificates that the client trusts to verify the broker over TLS (the transport.trustStoreLocation option of Qpid JMS). Used only with useSsl. When not set, Qpid JMS uses the javax.net.ssl.trustStore system property. | | String |
trustStoreType (common) | The type of the truststore file, such as JKS or PKCS12. Used only with useSsl and trustStoreLocation. | JKS | String |
useSsl (common) | Whether the component connects to the broker over TLS, with an amqps:// connection URI built from host and port. Only then are the keystore and truststore options used. Not used when brokerUrl or connectionFactory is set. | | Boolean |
useTopicPrefix (common) | Whether the connection factory that the component creates, from brokerUrl or from host and port, adds the topic:// prefix to the address of each topic (the topicPrefix option of Qpid JMS). The prefix is added unless this is false. A connectionFactory that you set yourself is not changed. | | Boolean |
acknowledgementModeName (consumer) | The JMS acknowledgement mode of the sessions of the consumer: AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE or SESSION_TRANSACTED. Not used when transacted is enabled, as the sessions are then transacted. With the DefaultMessageListenerContainer, AUTO_ACKNOWLEDGE acknowledges a message when it is received, before the route processes it, so a failed message is not redelivered. CLIENT_ACKNOWLEDGE acknowledges it after it has been processed successfully, and transacted also redelivers it when the processing fails. -
SESSION_TRANSACTED -
CLIENT_ACKNOWLEDGE -
AUTO_ACKNOWLEDGE -
DUPS_OK_ACKNOWLEDGE | AUTO_ACKNOWLEDGE | String |
artemisConsumerPriority (consumer) | The consumer priority of the consumer on an Apache ActiveMQ Artemis broker, which Camel adds to the destination name as the consumer-priority parameter (0, the default, adds none). The broker delivers the messages to the consumers of the highest priority (round-robin between those of the same priority), and to consumers of a lower priority only when those have no credit or do not accept the message, for example because of their selector. | | int |
asyncConsumer (consumer) | Whether the JmsConsumer processes the Exchange asynchronously. If enabled then the JmsConsumer may pickup the next message from the JMS queue, while the previous message is being processed asynchronously (by the Asynchronous Routing Engine). This means that messages may be processed not 100% strictly in order. If disabled (as default) then the Exchange is fully processed before the JmsConsumer will pickup the next message from the JMS queue. Note if transacted has been enabled, then asyncConsumer=true does not run asynchronously, as transaction must be executed synchronously. | false | boolean |
autoStartup (consumer) | Whether the consumer starts its listener container, and so receives messages, when the consumer starts. When disabled, the listener container is started when the consumer is resumed. | true | boolean |
cacheLevel (consumer) | The cache level of the JMS resources of the DefaultMessageListenerContainer of the consumer, by number: 0 (CACHE_NONE), 1 (CACHE_CONNECTION), 2 (CACHE_SESSION), 3 (CACHE_CONSUMER) or 4 (CACHE_AUTO). Takes precedence over cacheLevelName, which describes the levels. | | int |
cacheLevelName (consumer) | The cache level of the JMS resources (connection, session and consumer) that the DefaultMessageListenerContainer of the consumer keeps between receives: CACHE_NONE, CACHE_CONNECTION, CACHE_SESSION, CACHE_CONSUMER or CACHE_AUTO. CACHE_AUTO uses CACHE_NONE when there is a transaction manager (including the JmsTransactionManager that Camel creates when transacted is enabled), and CACHE_CONSUMER otherwise. Not used by the SimpleMessageListenerContainer. See also cacheLevel. -
CACHE_AUTO -
CACHE_CONNECTION -
CACHE_CONSUMER -
CACHE_NONE -
CACHE_SESSION | CACHE_AUTO | String |
concurrentConsumers (consumer) | The number of concurrent consumers that consume from the destination: the minimum number with the DefaultMessageListenerContainer, which scales up to maxConcurrentConsumers. The SimpleMessageListenerContainer uses a fixed number, which is maxConcurrentConsumers when that is set. Not used by the reply consumer of request/reply over JMS (see replyToConcurrentConsumers). On a topic, each consumer has its own subscription and receives every message, unless subscriptionShared is enabled. | 1 | int |
maxConcurrentConsumers (consumer) | The maximum number of concurrent consumers that consume from the destination: the DefaultMessageListenerContainer scales between concurrentConsumers and this number (see also maxMessagesPerTask, idleTaskExecutionLimit and idleConsumerLimit), and the SimpleMessageListenerContainer uses this fixed number of consumers. Must not be lower than concurrentConsumers. Not used by the reply consumer of request/reply over JMS (see replyToMaxConcurrentConsumers). On a topic, each consumer has its own subscription and receives every message, unless subscriptionShared is enabled. | | int |
replyToDeliveryPersistent (consumer) | Whether the consumer sends its replies of request/reply with persistent delivery (PERSISTENT) or not (NON_PERSISTENT). Takes effect only when the QoS options of the endpoint of the consumer are used (see explicitQosEnabled), not with preserveMessageQos. | true | boolean |
selector (consumer) | The JMS message selector (an SQL-92 conditional expression on the JMS headers and properties of the messages, such as color = 'red') that the consumer uses to receive only the matching messages. | | String |
subscriptionDurable (consumer) | Whether the topic subscription is durable, so the JMS broker keeps its messages while the consumer is not connected. Its name is set with subscriptionName. Only for topics: Spring JMS switches the listener container to the publish-subscribe domain when it is enabled. A durable subscription that is not shared also requires the clientId option. | false | boolean |
subscriptionName (consumer) | The name of the shared or durable topic subscription to create. It must be unique within the JMS client id of the connection. Defaults to the class name of the message listener (org.apache.camel.component.jms.EndpointMessageListener). A subscription that is not shared allows only one concurrent consumer. | | String |
subscriptionShared (consumer) | Whether the topic subscription is shared (JMS 2.0), so its consumers (the concurrent consumers, and those of other connections that use the same subscriptionName) share its messages, instead of each receiving every message. Can be combined with subscriptionDurable. Only for topics: Spring JMS switches the listener container to the publish-subscribe domain when it is enabled. Requires a JMS 2.0 message broker. | false | boolean |
acceptMessagesWhileStopping (consumer (advanced)) | Specifies whether the consumer accept messages while it is stopping. You may consider enabling this option, if you start and stop JMS routes at runtime, while there are still messages enqueued on the queue. If this option is false, and you stop the JMS route, then messages may be rejected, and the JMS broker would have to attempt redeliveries, which yet again may be rejected, and eventually the message may be moved at a dead letter queue on the JMS broker. To avoid this its recommended to enable this option. | false | boolean |
allowReplyManagerQuickStop (consumer (advanced)) | Whether the DefaultMessageListenerContainer of the reply consumer of request/reply over JMS stops receiving right away when the CamelContext is stopping and acceptMessagesWhileStopping is disabled, as the regular JMS consumers do. Disabled by default, so the reply consumer keeps receiving replies while the CamelContext is stopping. | false | boolean |
consumerType (consumer (advanced)) | The consumer type to use, which can be one of: Simple, Default, or Custom. The consumer type determines which Spring JMS listener to use. Default will use org.springframework.jms.listener.DefaultMessageListenerContainer, Simple will use org.springframework.jms.listener.SimpleMessageListenerContainer. When Custom is specified, the MessageListenerContainerFactory defined by the messageListenerContainerFactory option will determine what org.springframework.jms.listener.AbstractMessageListenerContainer to use. | Default | ConsumerType |
defaultTaskExecutorType (consumer (advanced)) | Specifies what default TaskExecutor type to use in the DefaultMessageListenerContainer, for both consumer endpoints and the ReplyTo consumer of producer endpoints. Possible values: SimpleAsync (uses Spring’s SimpleAsyncTaskExecutor) or ThreadPool (uses Spring’s ThreadPoolTaskExecutor with optimal values - cached thread-pool-like). If not set, it defaults to the previous behaviour, which uses a cached thread pool for consumer endpoints and SimpleAsync for reply consumers. The use of ThreadPool is recommended to reduce thread trash in elastic configurations with dynamically increasing and decreasing concurrent consumers. | | DefaultTaskExecutorType |
eagerLoadingOfProperties (consumer (advanced)) | Whether the consumer reads the body and the properties of a JMS message as soon as it receives it, instead of when the route uses them. This is generally less efficient, but catches problems of the JMS provider with the message early. See also eagerPoisonBody. | false | boolean |
eagerPoisonBody (consumer (advanced)) | The text that replaces the message body when eagerLoadingOfProperties is enabled and the body or the properties of the JMS message cannot be read (a poison message), so the message can be processed; the cause is stored as the exception of the exchange, which is not redelivered. It can be a simple language expression. Set it to false to turn this off. | Poison JMS message payload: ${exception.message} | String |
exposeListenerSession (consumer (advanced)) | Whether the listener container exposes the JMS session of the consumer to the Spring JmsTemplate calls on the same thread, so a producer in the route that uses the same connection factory reuses that session (and its local transaction). Disable it to use a new session of the same connection instead, which some JMS providers need. A session of a transaction manager is always exposed. | true | boolean |
replyToConsumerType (consumer (advanced)) | The consumer type of the reply consumer (when doing request/reply), which can be one of: Simple, Default, or Custom. The consumer type determines which Spring JMS listener to use. Default will use org.springframework.jms.listener.DefaultMessageListenerContainer, Simple will use org.springframework.jms.listener.SimpleMessageListenerContainer. When Custom is specified, the MessageListenerContainerFactory defined by the messageListenerContainerFactory option will determine what org.springframework.jms.listener.AbstractMessageListenerContainer to use. | Default | ConsumerType |
replyToSameDestinationAllowed (consumer (advanced)) | Whether the consumer may send a reply to the destination it consumes from. Disabled by default, to prevent an endless loop of consuming and sending back the same message to itself. | false | boolean |
taskExecutor (consumer (advanced)) | A custom Spring TaskExecutor that the listener container of the consumer (and of the reply consumer of request/reply) runs its consumers with. When not set, see defaultTaskExecutorType. | | TaskExecutor |
deliveryDelay (producer) | The delivery delay in milliseconds of the messages sent: the JMS broker delivers a message no earlier than this delay after it was sent. The default -1 sets none. Requires a JMS 2.0 message broker. | -1 | long |
deliveryMode (producer) | The JMS delivery mode of the messages sent: 1 (NON_PERSISTENT) or 2 (PERSISTENT), as defined by jakarta.jms.DeliveryMode. Takes precedence over deliveryPersistent. Setting it enables explicitQosEnabled, unless that is configured. | | Integer |
deliveryPersistent (producer) | Whether the messages are sent with persistent delivery (PERSISTENT) or not (NON_PERSISTENT). Not used when deliveryMode is set. Setting it enables explicitQosEnabled, unless that is configured. | true | boolean |
explicitQosEnabled (producer) | Whether the producer sends the messages with the deliveryMode (or deliveryPersistent), priority and timeToLive options of the endpoint (the explicitQosEnabled of Spring’s JmsTemplate); otherwise the defaults of the JMS provider apply. It is enabled automatically when one of these options is set, unless explicitQosEnabled is configured, and always for the requests of request/reply over JMS. In contrast, preserveMessageQos takes the values from the message headers. Also keeps the JMSReplyTo of a message sent as InOnly. | false | Boolean |
formatDateHeadersToIso8601 (producer) | Whether the java.util.Date headers are sent as JMS string properties in the ISO 8601 format (in UTC), instead of the format of Date.toString(). | false | boolean |
lazyStartProducer (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | boolean |
preserveMessageQos (producer) | Whether the producer sends each message with the QoS values of the message instead of those of the endpoint: the JMSPriority, JMSDeliveryMode and JMSExpiration headers, of which you can set all or only some. JMSExpiration is the time in milliseconds at which the message expires, which is turned into the time to live. Without a JMSExpiration header the timeToLive of the endpoint (or the requestTimeout of request/reply) is used. Without a JMSDeliveryMode or JMSPriority header the values of the JMS message are used: PERSISTENT and the default priority of the JMS provider, or those of a received JMS message that is sent on. Also keeps the JMSReplyTo of a message sent as InOnly. In contrast, explicitQosEnabled uses the options of the endpoint. | false | boolean |
priority (producer) | The JMS priority of the messages sent, from 0 (lowest) to 9 (highest). Setting it enables explicitQosEnabled, unless that is configured. | 4 | int |
replyToConcurrentConsumers (producer) | The number of concurrent consumers of the reply consumer of request/reply over JMS: the minimum number with the DefaultMessageListenerContainer, which scales up to replyToMaxConcurrentConsumers. | 1 | int |
replyToMaxConcurrentConsumers (producer) | The maximum number of concurrent consumers of the reply consumer of request/reply over JMS: the DefaultMessageListenerContainer scales between replyToConcurrentConsumers and this number. Not used with replyToConsumerType Simple. | | int |
replyToOnTimeoutMaxConcurrentConsumers (producer) | The maximum number of threads of the thread pool that continues routing the exchanges whose reply of request/reply over JMS did not arrive within requestTimeout. Must be at least 1. | 1 | int |
replyToOverride (producer) | The destination to set as JMSReplyTo of the messages sent, instead of the reply queue (replyTo, or the temporary queue) that the producer receives the replies from. Useful when a remote system receives the message, and the reply reaches the reply queue of the producer in another way. | | String |
replyToType (producer) | The kind of reply queue of request/reply over JMS: Temporary (a temporary queue of the producer, the default without replyTo, and not allowed with replyTo), Shared (the replyTo queue, which others may use as well, so the reply consumer selects its replies with a JMS message selector; the default with replyTo, and slower than the others) or Exclusive (the replyTo queue, which only this producer uses, so no selector is needed). See the documentation about the implications in a clustered environment. -
Temporary -
Shared -
Exclusive | | ReplyToType |
requestTimeout (producer) | The time in milliseconds that the producer waits for the reply with request/reply over JMS (InOut). The CamelJmsRequestTimeout header overrides it for a message. Also used as the time to live of the request, unless timeToLive is set or disableTimeToLive is enabled. See also requestTimeoutCheckerInterval. | 20000 | long |
timeToLive (producer) | The time to live in milliseconds of the messages sent, after which the JMS broker discards them. The default -1 sets none, so the messages do not expire, except the requests of request/reply over JMS, which use requestTimeout instead (see disableTimeToLive). Setting it enables explicitQosEnabled, unless that is configured. | -1 | long |
allowAdditionalHeaders (producer (advanced)) | This option is used to allow additional headers which may have values that are invalid according to JMS specification. For example, some message systems, such as WMQ, do this with header names using prefix JMS_IBM_MQMD_ containing values with byte array or other invalid types. You can specify multiple header names separated by comma, and use * as suffix for wildcard matching. | | String |
allowNullBody (producer (advanced)) | Whether to allow sending messages with no body. If this option is false and the message body is null, then an JMSException is thrown. | true | boolean |
alwaysCopyMessage (producer (advanced)) | Whether the producer always creates a new JMS message from the Camel message, instead of sending a received JMS message as it is (when the route did not change it). Camel enables it when replyToDestinationSelectorName is set. | false | boolean |
correlationProperty (producer (advanced)) | The name of the JMS property that request/reply over JMS (InOut) correlates the request and the reply with, instead of JMSCorrelationID. The producer generates its value, unless the message has a header with that name, and the reply must carry it. JMSCorrelationID is then not used, nor set by Camel. | | String |
disableTimeToLive (producer (advanced)) | Whether to send the messages without a time to live, so they do not expire, also when timeToLive is set. By default request/reply over JMS sends the request with requestTimeout as time to live, which requires the clocks of the sending and the receiving systems to be in sync; enable this option to avoid that. | false | boolean |
forceSendOriginalMessage (producer (advanced)) | When using mapJmsMessage=false Camel will create a new JMS message to send to a new JMS destination if you touch the headers (get or set) during the route. Set this option to true to force Camel to send the original JMS message that was received. | false | boolean |
includeSentJMSMessageID (producer (advanced)) | Whether the producer sets the JMSMessageID header to the JMSMessageID that the JMS provider assigned to the message sent. Only for messages sent as InOnly (fire and forget). | false | boolean |
replyCorrelationProperty (producer (advanced)) | The name of the JMS property of the reply that holds the correlation id, for a Shared reply queue without replyToDestinationSelectorName: the JMS message selector of the reply consumer then matches this property instead of JMSCorrelationID. In contrast, correlationProperty names the property of the request, and does not change the selector. | | String |
replyToCacheLevelName (producer (advanced)) | The cache level of the DefaultMessageListenerContainer of the reply consumer of request/reply over JMS. By default Camel uses CACHE_CONSUMER for a temporary or Exclusive reply queue, and for a Shared reply queue with replyToDestinationSelectorName, and CACHE_SESSION for a Shared reply queue without it (whose message selector changes with the requests). Some JMS brokers, such as IBM WebSphere, may require CACHE_NONE, which is not allowed with temporary reply queues. -
CACHE_AUTO -
CACHE_CONNECTION -
CACHE_CONSUMER -
CACHE_NONE -
CACHE_SESSION | | String |
replyToDestinationSelectorName (producer (advanced)) | The name of a JMS property that the producer sets on each request to a value unique to the producer, and that its reply consumer selects the replies on (a fixed JMS message selector), so the producer receives only its own replies from a Shared reply queue. The reply must carry the property with the same value. Enables alwaysCopyMessage. | | String |
streamMessageTypeEnabled (producer (advanced)) | Sets whether StreamMessage type is enabled or not. Message payloads of streaming kind such as files, InputStream, etc will either by sent as BytesMessage or StreamMessage. This option controls which kind will be used. By default BytesMessage is used which enforces the entire message payload to be read into memory. By enabling this option the message payload is read into memory in chunks and each chunk is then written to the StreamMessage until no more data. | false | boolean |
allowAutoWiredConnectionFactory (advanced) | Whether to auto-discover ConnectionFactory from the registry, if no connection factory has been configured. If only one instance of ConnectionFactory is found then it will be used. This is enabled by default. | true | boolean |
allowAutoWiredDestinationResolver (advanced) | Whether to auto-discover a DestinationResolver (and a TemporaryQueueResolver) from the registry, if none has been configured. If only one instance is found then it will be used. This is enabled by default. | true | boolean |
allowSerializedHeaders (advanced) | Whether transferExchange also sends the headers (and exchange properties and variables) whose values are other serializable objects; otherwise only the values of the types String, Number, Character, Boolean and Date are sent, and the others are left out and logged at WARN level. Applies only when transferExchange is enabled. | false | boolean |
artemisStreamingEnabled (advanced) | Whether to use the large message streaming of Apache ActiveMQ Artemis: the producer streams the body into a BytesMessage (instead of a StreamMessage) with the JMS_AMQ_InputStream property, and the consumer streams a large BytesMessage into a stream cache with the JMS_AMQ_SaveStream property, instead of reading the whole body into memory. Only enable it with Apache ActiveMQ Artemis. | false | boolean |
asyncStartListener (advanced) | Whether to startup the JmsConsumer message listener asynchronously, when starting a route. For example if a JmsConsumer cannot get a connection to a remote JMS broker, then it may block while retrying and/or fail-over. This will cause Camel to block while starting routes. By setting this option to true, you will let routes startup, while the JmsConsumer connects to the JMS broker using a dedicated thread in asynchronous mode. If this option is used, then beware that if the connection could not be established, then an exception is logged at WARN level, and the consumer will not be able to receive messages; You can then restart the route to retry. | false | boolean |
asyncStopListener (advanced) | Whether to stop the JmsConsumer message listener asynchronously, when stopping a route. | false | boolean |
autowiredEnabled (advanced) | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | boolean |
browseLimit (advanced) | The maximum number of messages that browsing the queue of the endpoint (with a JMS QueueBrowser) reads into memory and returns. Use 0 for unlimited. | 100 | int |
configuration (advanced) | To use a shared JMS configuration. | | JmsConfiguration |
destinationResolver (advanced) | A pluggable org.springframework.jms.support.destination.DestinationResolver that allows you to use your own resolver (for example, to lookup the real destination in a JNDI registry). | | DestinationResolver |
errorHandler (advanced) | A Spring org.springframework.util.ErrorHandler that the listener container invokes for the uncaught exceptions thrown while processing a message, such as a failed exchange that the route did not handle. When not set, Camel logs these exceptions at the level of errorHandlerLoggingLevel, with a stack trace unless errorHandlerLogStackTrace is disabled. | | ErrorHandler |
exceptionListener (advanced) | A jakarta.jms.ExceptionListener that the listener container of the consumer (and of the reply consumer of request/reply) notifies of the JMSExceptions it gets, such as when it cannot connect to the JMS broker. | | ExceptionListener |
idleConsumerLimit (advanced) | The maximum number of consumers of the DefaultMessageListenerContainer that may be idle at any time: a new consumer is only scheduled when fewer consumers are idle. Raising it scales up faster. Also used by the reply consumer of request/reply. | 1 | int |
idleReceivesPerTaskLimit (advanced) | The number of consecutive receives without a message after which a consumer task of the DefaultMessageListenerContainer is marked idle and released. Each receive waits up to receiveTimeout. Also used by the reply consumer of request/reply. Unlike maxMessagesPerTask, which releases a task after a number of receives whether they got a message or not, this option releases the task only once there are no more messages. idleTaskExecutionLimit then decides after how many idle executions the consumer is shut down. On its own it applies only to the surplus consumers above concurrentConsumers. For example, with receiveTimeout 1000 and idleReceivesPerTaskLimit 60, a task is released after 60 seconds without messages. When not set, Spring JMS uses 10 for the surplus consumers, unless the task executor prefers short-lived tasks. | | int |
idleTaskExecutionLimit (advanced) | The number of consecutive executions without a message after which a consumer task of the DefaultMessageListenerContainer shuts down when the container scales dynamically (see maxConcurrentConsumers); the concurrentConsumers consumers are kept. Also used by the reply consumer of request/reply. Raise it if the consumers scale up and down too often. | 1 | int |
includeAllJMSXProperties (advanced) | Whether the JMSX headers defined by the JMS specification that the JMS provider sets (JMSXUserID, JMSXAppID, JMSXDeliveryCount, JMSXProducerTXID, JMSXConsumerTXID, JMSXRcvTimestamp and JMSXState) are also sent as JMS properties when sending a message; by default they are left out. Not used with a custom headerFilterStrategy. | false | boolean |
includeCorrelationIDAsBytes (advanced) | Whether a received JMS message gets the JMSCorrelationIDAsBytes header, holding its JMSCorrelationID as a byte array. | true | boolean |
jmsKeyFormatStrategy (advanced) | The strategy that encodes the names of the Camel headers into valid JMS property names when sending, and decodes them back when receiving: default replaces a dot with DOT and a hyphen with HYPHEN, and passthrough keeps the names as they are (for JMS brokers that accept such names). You can also refer to your own implementation of org.apache.camel.component.jms.JmsKeyFormatStrategy with the # notation. | | JmsKeyFormatStrategy |
mapJmsMessage (advanced) | Whether the body of a received JMS message is mapped to a Java type: a TextMessage to String, a BytesMessage to byte[], a MapMessage to Map, a StreamMessage to InputStream and an ObjectMessage to its object (see objectMessageEnabled). When disabled, the body is the jakarta.jms.Message itself. Not used when messageConverter is set. | true | boolean |
maxMessagesPerTask (advanced) | The maximum number of receive attempts (including those that time out without a message, see receiveTimeout) that a consumer task of the DefaultMessageListenerContainer makes before it is released and scheduled again; also used by the reply consumer of request/reply. With a range of concurrent consumers (maxConcurrentConsumers higher than concurrentConsumers), a value such as 100 controls how fast the surplus consumers shrink when less work is required. The default -1 leaves it to Spring JMS: unlimited, or 10 when the task executor prefers short-lived tasks (such as with defaultTaskExecutorType ThreadPool). | -1 | int |
messageConverter (advanced) | A custom Spring org.springframework.jms.support.converter.MessageConverter that converts the message body to a jakarta.jms.Message when sending, and a received jakarta.jms.Message to the message body. It replaces the body mapping of Camel (mapJmsMessage and jmsMessageType); the headers are still mapped by Camel. | | MessageConverter |
messageCreatedStrategy (advanced) | A MessageCreatedStrategy that Camel invokes each time it creates a jakarta.jms.Message to send, so the message can be customized. | | MessageCreatedStrategy |
messageIdEnabled (advanced) | When sending, specifies whether message IDs should be added. This is just an hint to the JMS broker. If the JMS provider accepts this hint, these messages must have the message ID set to null; if the provider ignores the hint, the message ID must be set to its normal unique value. | true | boolean |
messageListenerContainerFactory (advanced) | The MessageListenerContainerFactory that creates the org.springframework.jms.listener.AbstractMessageListenerContainer of the consumer (and of the reply consumer when replyToConsumerType is Custom). Setting it sets consumerType to Custom. | | MessageListenerContainerFactory |
messageTimestampEnabled (advanced) | Specifies whether timestamps should be enabled by default on sending messages. This is just an hint to the JMS broker. If the JMS provider accepts this hint, these messages must have the timestamp set to zero; if the provider ignores the hint the timestamp must be set to its normal value. | true | boolean |
objectMessageEnabled (advanced) | Whether to enable sending and receiving JMS ObjectMessage. By default this is disabled because Java object serialization is a known source of security vulnerabilities. Enable this option only if you trust the source of the messages and need to send or receive Java serialized objects via JMS. When disabled, Camel will refuse to create or read JMS ObjectMessage instances. Options that rely on ObjectMessage internally (such as transferExchange and transferException) require this option to be enabled. | false | boolean |
pubSubNoLocal (advanced) | Specifies whether to inhibit the delivery of messages published by its own connection. | false | boolean |
queueBrowseStrategy (advanced) | To use a custom QueueBrowseStrategy when browsing queues. | | QueueBrowseStrategy |
receiveTimeout (advanced) | The time in milliseconds that a consumer of the DefaultMessageListenerContainer (also of the reply consumer of request/reply) waits for a message in each receive call. 0 waits without a timeout, which prevents the consumer from stopping cleanly. With a transaction manager it must be shorter than the transaction timeout. Not used by the SimpleMessageListenerContainer. | 1000 | long |
recoveryInterval (advanced) | The interval in milliseconds between the attempts of the DefaultMessageListenerContainer of the consumer (and of the reply consumer of request/reply) to recover, such as to connect again after the connection to the JMS broker failed. | 5000 | long |
requestTimeoutCheckerInterval (advanced) | Configures how often Camel should check for timed out Exchanges when doing request/reply over JMS. By default Camel checks once per second. But if you must react faster when a timeout occurs, then you can lower this interval, to check more frequently. The timeout is determined by the option requestTimeout. | 1000 | long |
serviceLocationEnabled (advanced) | Whether to detect the network address location of the JMS broker on startup. This information is gathered via reflection on the ConnectionFactory, and is vendor specific. This option can be used to turn this off. | true | boolean |
synchronous (advanced) | Whether to process strictly synchronously: the consumer processes each message in the thread that received it (also when asyncConsumer is enabled), and the producer blocks the calling thread until request/reply over JMS has received its reply. | false | boolean |
temporaryQueueResolver (advanced) | A pluggable TemporaryQueueResolver that allows you to use your own resolver for creating temporary queues (some messaging systems has special requirements for creating temporary queues). | | TemporaryQueueResolver |
transferException (advanced) | Whether the consumer of request/reply (InOut) sends the exception of a failed exchange back as the reply, in a jakarta.jms.ObjectMessage, and the producer rethrows it; the exception may be wrapped, such as in org.apache.camel.RuntimeCamelException. This allows you to use Camel JMS as a bridge in your routing, for example with persistent queues for robust routing. Takes precedence over transferExchange. Must be enabled on both the producer and the consumer, requires objectMessageEnabled, and the exception must be serializable. Use it with caution: Java serialization couples the producers and the consumers to compatible classes. | false | boolean |
transferExchange (advanced) | Whether to send the exchange instead of only the body and headers: the in and out body and headers, the exchange properties and variables, and the exception, as a Java serialized jakarta.jms.ObjectMessage. Values that are not serializable are left out and logged at WARN level. Must be enabled on both the producer and the consumer, and requires objectMessageEnabled. Use it with caution: Java serialization couples the producers and the consumers to compatible Camel versions. | false | boolean |
useMessageIDAsCorrelationID (advanced) | Whether request/reply over JMS correlates the reply with the JMSMessageID of the request, instead of a JMSCorrelationID that the producer sets: the replier must set the JMSCorrelationID of the reply to the JMSMessageID of the request, which a consumer does when this option is enabled. | false | boolean |
waitForProvisionCorrelationToBeUpdatedCounter (advanced) | The number of times to wait (each for waitForProvisionCorrelationToBeUpdatedThreadSleepingTime) for the provisional correlation id to be updated to the JMSMessageID of the request, when a reply arrives before that, with request/reply over JMS and useMessageIDAsCorrelationID enabled. | 50 | int |
waitForProvisionCorrelationToBeUpdatedThreadSleepingTime (advanced) | The interval in milliseconds between the attempts of waitForProvisionCorrelationToBeUpdatedCounter. | 100 | long |
waitForTemporaryReplyToToBeUpdatedCounter (advanced) | The number of times to wait (each for waitForTemporaryReplyToToBeUpdatedThreadSleepingTime) for the reply queue of request/reply over JMS (the temporary queue, or the replyTo queue) to be ready, before sending a request. | 200 | int |
waitForTemporaryReplyToToBeUpdatedThreadSleepingTime (advanced) | The interval in milliseconds between the attempts of waitForTemporaryReplyToToBeUpdatedCounter. | 100 | long |
headerFilterStrategy (filter) | To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel message. | | HeaderFilterStrategy |
errorHandlerLoggingLevel (logging) | The logging level at which the default errorHandler (used when no errorHandler is set) logs the uncaught exceptions thrown while processing a message. -
TRACE -
DEBUG -
INFO -
WARN -
ERROR -
OFF | WARN | LoggingLevel |
errorHandlerLogStackTrace (logging) | Whether the default errorHandler (used when no errorHandler is set) logs the stack trace of the uncaught exceptions thrown while processing a message. | true | boolean |
deserializationFilter (security) | Sets an ObjectInputFilter pattern (jdk.serialFilter syntax) applied as a defense-in-depth check on the class of the body returned by jakarta.jms.ObjectMessage.getObject(). The pattern is evaluated after the JMS provider has deserialized the payload, so this option alone does not prevent gadget-chain execution that happens inside the provider’s ObjectInputStream; to block such attacks, also configure the JMS provider’s own deserialization filter and/or the JVM-wide -Djdk.serialFilter. When this option is not set and no JVM-wide filter is configured, a conservative default filter denying java.net. and otherwise allowing java., javax. and org.apache.camel. is applied. | | String |
keyStorePassword (security) | The password of the keystore file. Used only with useSsl and keyStoreLocation. | | String |
password (security) | Password to use with the ConnectionFactory. You can also configure username/password directly on the ConnectionFactory. | | String |
trustStorePassword (security) | The password of the truststore file. Used only with useSsl and trustStoreLocation. | | String |
username (security) | Username to use with the ConnectionFactory. You can also configure username/password directly on the ConnectionFactory. | | String |
transacted (transaction) | Whether to use transacted JMS sessions: the consumer receives and processes each message in a transaction, which is rolled back when the processing fails, so that the JMS broker redelivers the message (see also transactionManager and lazyCreateTransactionManager), and the producer sends in a transacted session. The consumer then processes the messages synchronously. Not used by the producer of request/reply over JMS (see transactedInOut). | false | boolean |
transactedInOut (transaction) | Whether the producer sends the requests of request/reply over JMS (InOut) in a transacted session (the sessionTransacted of Spring’s JmsTemplate): outside a transaction a short local JMS transaction, and within a Spring managed transaction (other than XA) a local JMS transaction that commits right after it. The reply consumer is never transacted. | false | boolean |
lazyCreateTransactionManager (transaction (advanced)) | Whether Camel creates a JmsTransactionManager for the consumer when transacted is enabled and no transactionManager is set. When disabled, the consumer uses locally transacted JMS sessions without a transaction manager. | true | boolean |
transactionManager (transaction (advanced)) | The Spring PlatformTransactionManager (such as a JmsTransactionManager or JtaTransactionManager) that the DefaultMessageListenerContainer of the consumer runs the receive and the processing of each message in. When not set and transacted is enabled, Camel creates a JmsTransactionManager (see lazyCreateTransactionManager). | | PlatformTransactionManager |
transactionName (transaction (advanced)) | The name of the transactions of the consumer. Defaults to the name of the consumer thread, which includes the destination. Only used with a transaction manager and the DefaultMessageListenerContainer. | | String |
transactionTimeout (transaction (advanced)) | The timeout in seconds of the transactions of the consumer. The default -1 uses the default timeout of the transaction manager. Only used with a transaction manager and the DefaultMessageListenerContainer. | -1 | int |