/** * Sets the cache level by name for the underlying JMS resources. * Possible values are: CACHE_AUTO, CACHE_CONNECTION, CACHE_CONSUMER, CACHE_NONE, and CACHE_SESSION. * The default setting is CACHE_AUTO. See the Spring documentation and Transactions Cache Levels for more information. */ @Metadata(defaultValue = "CACHE_AUTO", label = "consumer", enums = "CACHE_AUTO,CACHE_CONNECTION,CACHE_CONSUMER,CACHE_NONE,CACHE_SESSION", description = "Sets the cache level by name for the underlying JMS resources." + " Possible values are: CACHE_AUTO, CACHE_CONNECTION, CACHE_CONSUMER, CACHE_NONE, and CACHE_SESSION." + " The default setting is CACHE_AUTO. See the Spring documentation and Transactions Cache Levels for more information.") public void setCacheLevelName(String cacheName) { getConfiguration().setCacheLevelName(cacheName); }
/** * Specifies the default number of concurrent consumers when doing request/reply over JMS. * See also the maxMessagesPerTask option to control dynamic scaling up/down of threads. */ @Metadata(defaultValue = "1", label = "producer", description = "Specifies the default number of concurrent consumers when doing request/reply over JMS." + " See also the maxMessagesPerTask option to control dynamic scaling up/down of threads.") public void setReplyToConcurrentConsumers(int concurrentConsumers) { getConfiguration().setReplyToConcurrentConsumers(concurrentConsumers); }
/** * To use a custom Spring org.springframework.jms.support.converter.MessageConverter so you can be in control * how to map to/from a javax.jms.Message. */ @Metadata(label = "advanced", description = "To use a custom Spring org.springframework.jms.support.converter.MessageConverter so you can be in control how to map to/from a javax.jms.Message.") public void setMessageConverter(MessageConverter messageConverter) { getConfiguration().setMessageConverter(messageConverter); }
/** * Specifies whether timestamps should be enabled by default on sending messages. */ @Metadata(defaultValue = "true", label = "advanced", description = "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") public void setMessageTimestampEnabled(boolean messageTimestampEnabled) { getConfiguration().setMessageTimestampEnabled(messageTimestampEnabled); }
/** * Specifies whether to inhibit the delivery of messages published by its own connection. */ @Metadata(label = "advanced", description = "Specifies whether to inhibit the delivery of messages published by its own connection.") public void setPubSubNoLocal(boolean pubSubNoLocal) { getConfiguration().setPubSubNoLocal(pubSubNoLocal); }
/** * Allows you to specify a custom task executor for consuming messages. */ @Metadata(label = "consumer,advanced", description = "Allows you to specify a custom task executor for consuming messages.") public void setTaskExecutor(TaskExecutor taskExecutor) { getConfiguration().setTaskExecutor(taskExecutor); }
/** * If true, Camel will create a JmsTransactionManager, if there is no transactionManager injected when option transacted=true. */ @Metadata(defaultValue = "true", label = "transaction,advanced", description = "If true, Camel will create a JmsTransactionManager, if there is no transactionManager injected when option transacted=true.") public void setLazyCreateTransactionManager(boolean lazyCreating) { getConfiguration().setLazyCreateTransactionManager(lazyCreating); }
/** * The Spring transaction manager to use. */ @Metadata(label = "transaction,advanced", description = "The Spring transaction manager to use.") public void setTransactionManager(PlatformTransactionManager transactionManager) { getConfiguration().setTransactionManager(transactionManager); }
/** * The name of the transaction to use. */ @Metadata(label = "transaction,advanced", description = "The name of the transaction to use.") public void setTransactionName(String transactionName) { getConfiguration().setTransactionName(transactionName); }
/** * 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. */ @Metadata(defaultValue = "1000", label = "advanced", description = "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.") public void setRequestTimeoutCheckerInterval(long requestTimeoutCheckerInterval) { getConfiguration().setRequestTimeoutCheckerInterval(requestTimeoutCheckerInterval); }
/** * Whether to allow sending messages with no body. If this option is false and the message body is null, then an JMSException is thrown. */ @Metadata(defaultValue = "true", label = "producer,advanced", description = "Whether to allow sending messages with no body. If this option is false and the message body is null, then an JMSException is thrown.") public void setAllowNullBody(boolean allowNullBody) { getConfiguration().setAllowNullBody(allowNullBody); }
/** * 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. */ @Metadata(label = "producer,advanced", description = "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.") public void setAllowAdditionalHeaders(String allowAdditionalHeaders) { getConfiguration().setAllowAdditionalHeaders(allowAdditionalHeaders); }
/** * Specifies whether the consumer container should auto-startup. */ @Metadata(label = "consumer", defaultValue = "true", description = "Specifies whether the consumer container should auto-startup.") public void setAutoStartup(boolean autoStartup) { getConfiguration().setAutoStartup(autoStartup); }
/** * Sets the cache level by ID for the underlying JMS resources. See cacheLevelName option for more details. */ @Metadata(label = "consumer", description = "Sets the cache level by ID for the underlying JMS resources. See cacheLevelName option for more details.") public void setCacheLevel(int cacheLevel) { getConfiguration().setCacheLevel(cacheLevel); }
/** * Specifies the maximum number of concurrent consumers for continue routing when timeout occurred when using request/reply over JMS. */ @Metadata(label = "producer", defaultValue = "1", description = "Specifies the maximum number of concurrent consumers for continue routing when timeout occurred when using request/reply over JMS.") public void setReplyOnTimeoutToMaxConcurrentConsumers(int maxConcurrentConsumers) { getConfiguration().setReplyToOnTimeoutMaxConcurrentConsumers(maxConcurrentConsumers); }
/** * 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. */ @Metadata(label = "producer,advanced", description = "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.") public void setForceSendOriginalMessage(boolean forceSendOriginalMessage) { getConfiguration().setForceSendOriginalMessage(forceSendOriginalMessage); }
/** * Only applicable when sending to JMS destination using InOnly (eg fire and forget). * Enabling this option will enrich the Camel Exchange with the actual JMSMessageID * that was used by the JMS client when the message was sent to the JMS destination. */ @Metadata(label = "producer,advanced", description = "Only applicable when sending to JMS destination using InOnly (eg fire and forget)." + " Enabling this option will enrich the Camel Exchange with the actual JMSMessageID" + " that was used by the JMS client when the message was sent to the JMS destination.") public void setIncludeSentJMSMessageID(boolean includeSentJMSMessageID) { getConfiguration().setIncludeSentJMSMessageID(includeSentJMSMessageID); }
/** * Whether to include all JMSXxxx properties when mapping from JMS to Camel Message. * Setting this to true will include properties such as JMSXAppID, and JMSXUserID etc. * Note: If you are using a custom headerFilterStrategy then this option does not apply. */ @Metadata(label = "advanced", description = "Whether to include all JMSXxxx properties when mapping from JMS to Camel Message." + " Setting this to true will include properties such as JMSXAppID, and JMSXUserID etc." + " Note: If you are using a custom headerFilterStrategy then this option does not apply.") public void setIncludeAllJMSXProperties(boolean includeAllJMSXProperties) { getConfiguration().setIncludeAllJMSXProperties(includeAllJMSXProperties); }
/** * Number of times to wait for provisional correlation id to be updated to the actual correlation id when doing request/reply over JMS * and when the option useMessageIDAsCorrelationID is enabled. */ @Metadata(defaultValue = "50", label = "advanced", description = "Number of times to wait for provisional correlation id to be updated to the actual correlation id when doing request/reply over JMS" + " and when the option useMessageIDAsCorrelationID is enabled.") public void setWaitForProvisionCorrelationToBeUpdatedCounter(int counter) { getConfiguration().setWaitForProvisionCorrelationToBeUpdatedCounter(counter); }
/** * Returns a new JMS endpoint for the given JMS destination using the configuration from the given JMS component */ public static JmsEndpoint newInstance(Destination destination, JmsComponent component) throws JMSException { JmsEndpoint answer = newInstance(destination); JmsConfiguration newConfiguration = component.getConfiguration().copy(); answer.setConfiguration(newConfiguration); answer.setCamelContext(component.getCamelContext()); return answer; }