Interface SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver,org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver,SjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder,SjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder
- Enclosing interface:
- SjmsEndpointBuilderFactory
public static interface SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder extends SjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder, SjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder
Advanced builder for endpoint for the Simple JMS component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderasyncStartListener(boolean asyncStartListener)Whether to startup the consumer message listener asynchronously, when starting a route.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderasyncStartListener(String asyncStartListener)Whether to startup the consumer message listener asynchronously, when starting a route.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderasyncStopListener(boolean asyncStopListener)Whether to stop the consumer message listener asynchronously, when stopping a route.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderasyncStopListener(String asyncStopListener)Whether to stop the consumer message listener asynchronously, when stopping a route.default SjmsEndpointBuilderFactory.SjmsEndpointBuilderbasic()default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderdestinationCreationStrategy(String destinationCreationStrategy)To use a custom DestinationCreationStrategy.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderdestinationCreationStrategy(org.apache.camel.component.sjms.jms.DestinationCreationStrategy destinationCreationStrategy)To use a custom DestinationCreationStrategy.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderexceptionListener(String exceptionListener)Specifies the JMS Exception Listener that is to be notified of any underlying JMS exceptions.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderexceptionListener(javax.jms.ExceptionListener exceptionListener)Specifies the JMS Exception Listener that is to be notified of any underlying JMS exceptions.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderheaderFilterStrategy(String headerFilterStrategy)To use a custom HeaderFilterStrategy to filter header to and from Camel message.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderheaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)To use a custom HeaderFilterStrategy to filter header to and from Camel message.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderincludeAllJMSXProperties(boolean includeAllJMSXProperties)Whether to include all JMSXxxx properties when mapping from JMS to Camel Message.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderincludeAllJMSXProperties(String includeAllJMSXProperties)Whether to include all JMSXxxx properties when mapping from JMS to Camel Message.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderjmsKeyFormatStrategy(String jmsKeyFormatStrategy)Pluggable strategy for encoding and decoding JMS keys so they can be compliant with the JMS specification.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderjmsKeyFormatStrategy(org.apache.camel.component.sjms.jms.JmsKeyFormatStrategy jmsKeyFormatStrategy)Pluggable strategy for encoding and decoding JMS keys so they can be compliant with the JMS specification.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuildermapJmsMessage(boolean mapJmsMessage)Specifies whether Camel should auto map the received JMS message to a suited payload type, such as javax.jms.TextMessage to a String etc.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuildermapJmsMessage(String mapJmsMessage)Specifies whether Camel should auto map the received JMS message to a suited payload type, such as javax.jms.TextMessage to a String etc.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuildermessageCreatedStrategy(String messageCreatedStrategy)To use the given MessageCreatedStrategy which are invoked when Camel creates new instances of javax.jms.Message objects when Camel is sending a JMS message.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuildermessageCreatedStrategy(org.apache.camel.component.sjms.jms.MessageCreatedStrategy messageCreatedStrategy)To use the given MessageCreatedStrategy which are invoked when Camel creates new instances of javax.jms.Message objects when Camel is sending a JMS message.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderrecoveryInterval(long recoveryInterval)Specifies the interval between recovery attempts, i.e.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilderrecoveryInterval(String recoveryInterval)Specifies the interval between recovery attempts, i.e.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuildersynchronous(boolean synchronous)Sets whether synchronous processing should be strictly used.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuildersynchronous(String synchronous)Sets whether synchronous processing should be strictly used.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuildertransferException(boolean transferException)If enabled and you are using Request Reply messaging (InOut) and an Exchange failed on the consumer side, then the caused Exception will be send back in response as a javax.jms.ObjectMessage.default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuildertransferException(String transferException)If enabled and you are using Request Reply messaging (InOut) and an Exchange failed on the consumer side, then the caused Exception will be send back in response as a javax.jms.ObjectMessage.-
Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
-
Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.SjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder
bridgeErrorHandler, bridgeErrorHandler, eagerLoadingOfProperties, eagerLoadingOfProperties, eagerPoisonBody, exceptionHandler, exceptionHandler, exchangePattern, exchangePattern, messageSelector, replyToSameDestinationAllowed, replyToSameDestinationAllowed
-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.SjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder
allowNullBody, allowNullBody, disableTimeToLive, disableTimeToLive, explicitQosEnabled, explicitQosEnabled, lazyStartProducer, lazyStartProducer, preserveMessageQos, preserveMessageQos
-
-
-
-
Method Detail
-
basic
default SjmsEndpointBuilderFactory.SjmsEndpointBuilder basic()
- Specified by:
basicin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
basicin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder
-
asyncStartListener
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder asyncStartListener(boolean asyncStartListener)
Whether to startup the consumer 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 failover. 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. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
asyncStartListenerin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
asyncStartListenerin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
asyncStartListener- the value to set- Returns:
- the dsl builder
-
asyncStartListener
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder asyncStartListener(String asyncStartListener)
Whether to startup the consumer 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 failover. 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. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
asyncStartListenerin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
asyncStartListenerin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
asyncStartListener- the value to set- Returns:
- the dsl builder
-
asyncStopListener
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder asyncStopListener(boolean asyncStopListener)
Whether to stop the consumer message listener asynchronously, when stopping a route. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
asyncStopListenerin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
asyncStopListenerin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
asyncStopListener- the value to set- Returns:
- the dsl builder
-
asyncStopListener
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder asyncStopListener(String asyncStopListener)
Whether to stop the consumer message listener asynchronously, when stopping a route. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
asyncStopListenerin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
asyncStopListenerin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
asyncStopListener- the value to set- Returns:
- the dsl builder
-
destinationCreationStrategy
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder destinationCreationStrategy(org.apache.camel.component.sjms.jms.DestinationCreationStrategy destinationCreationStrategy)
To use a custom DestinationCreationStrategy. The option is a: <code>org.apache.camel.component.sjms.jms.DestinationCreationStrategy</code> type. Group: advanced- Specified by:
destinationCreationStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
destinationCreationStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
destinationCreationStrategy- the value to set- Returns:
- the dsl builder
-
destinationCreationStrategy
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder destinationCreationStrategy(String destinationCreationStrategy)
To use a custom DestinationCreationStrategy. The option will be converted to a <code>org.apache.camel.component.sjms.jms.DestinationCreationStrategy</code> type. Group: advanced- Specified by:
destinationCreationStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
destinationCreationStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
destinationCreationStrategy- the value to set- Returns:
- the dsl builder
-
exceptionListener
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder exceptionListener(javax.jms.ExceptionListener exceptionListener)
Specifies the JMS Exception Listener that is to be notified of any underlying JMS exceptions. The option is a: <code>javax.jms.ExceptionListener</code> type. Group: advanced- Specified by:
exceptionListenerin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
exceptionListenerin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
exceptionListener- the value to set- Returns:
- the dsl builder
-
exceptionListener
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder exceptionListener(String exceptionListener)
Specifies the JMS Exception Listener that is to be notified of any underlying JMS exceptions. The option will be converted to a <code>javax.jms.ExceptionListener</code> type. Group: advanced- Specified by:
exceptionListenerin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
exceptionListenerin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
exceptionListener- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
To use a custom HeaderFilterStrategy to filter header to and from Camel message. The option is a: <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: advanced- Specified by:
headerFilterStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
headerFilterStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
headerFilterStrategy- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder headerFilterStrategy(String headerFilterStrategy)
To use a custom HeaderFilterStrategy to filter header to and from Camel message. The option will be converted to a <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: advanced- Specified by:
headerFilterStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
headerFilterStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
headerFilterStrategy- the value to set- Returns:
- the dsl builder
-
includeAllJMSXProperties
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder includeAllJMSXProperties(boolean includeAllJMSXProperties)
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. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
includeAllJMSXPropertiesin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
includeAllJMSXPropertiesin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
includeAllJMSXProperties- the value to set- Returns:
- the dsl builder
-
includeAllJMSXProperties
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder includeAllJMSXProperties(String includeAllJMSXProperties)
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. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
includeAllJMSXPropertiesin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
includeAllJMSXPropertiesin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
includeAllJMSXProperties- the value to set- Returns:
- the dsl builder
-
jmsKeyFormatStrategy
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder jmsKeyFormatStrategy(org.apache.camel.component.sjms.jms.JmsKeyFormatStrategy jmsKeyFormatStrategy)
Pluggable strategy for encoding and decoding JMS keys so they can be compliant with the JMS specification. Camel provides two implementations out of the box: default and passthrough. The default strategy will safely marshal dots and hyphens (. and -). The passthrough strategy leaves the key as is. Can be used for JMS brokers which do not care whether JMS header keys contain illegal characters. You can provide your own implementation of the org.apache.camel.component.jms.JmsKeyFormatStrategy and refer to it using the # notation. The option is a: <code>org.apache.camel.component.sjms.jms.JmsKeyFormatStrategy</code> type. Group: advanced- Specified by:
jmsKeyFormatStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
jmsKeyFormatStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
jmsKeyFormatStrategy- the value to set- Returns:
- the dsl builder
-
jmsKeyFormatStrategy
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder jmsKeyFormatStrategy(String jmsKeyFormatStrategy)
Pluggable strategy for encoding and decoding JMS keys so they can be compliant with the JMS specification. Camel provides two implementations out of the box: default and passthrough. The default strategy will safely marshal dots and hyphens (. and -). The passthrough strategy leaves the key as is. Can be used for JMS brokers which do not care whether JMS header keys contain illegal characters. You can provide your own implementation of the org.apache.camel.component.jms.JmsKeyFormatStrategy and refer to it using the # notation. The option will be converted to a <code>org.apache.camel.component.sjms.jms.JmsKeyFormatStrategy</code> type. Group: advanced- Specified by:
jmsKeyFormatStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
jmsKeyFormatStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
jmsKeyFormatStrategy- the value to set- Returns:
- the dsl builder
-
mapJmsMessage
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder mapJmsMessage(boolean mapJmsMessage)
Specifies whether Camel should auto map the received JMS message to a suited payload type, such as javax.jms.TextMessage to a String etc. See section about how mapping works below for more details. The option is a: <code>boolean</code> type. Default: true Group: advanced- Specified by:
mapJmsMessagein interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
mapJmsMessagein interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
mapJmsMessage- the value to set- Returns:
- the dsl builder
-
mapJmsMessage
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder mapJmsMessage(String mapJmsMessage)
Specifies whether Camel should auto map the received JMS message to a suited payload type, such as javax.jms.TextMessage to a String etc. See section about how mapping works below for more details. The option will be converted to a <code>boolean</code> type. Default: true Group: advanced- Specified by:
mapJmsMessagein interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
mapJmsMessagein interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
mapJmsMessage- the value to set- Returns:
- the dsl builder
-
messageCreatedStrategy
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder messageCreatedStrategy(org.apache.camel.component.sjms.jms.MessageCreatedStrategy messageCreatedStrategy)
To use the given MessageCreatedStrategy which are invoked when Camel creates new instances of javax.jms.Message objects when Camel is sending a JMS message. The option is a: <code>org.apache.camel.component.sjms.jms.MessageCreatedStrategy</code> type. Group: advanced- Specified by:
messageCreatedStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
messageCreatedStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
messageCreatedStrategy- the value to set- Returns:
- the dsl builder
-
messageCreatedStrategy
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder messageCreatedStrategy(String messageCreatedStrategy)
To use the given MessageCreatedStrategy which are invoked when Camel creates new instances of javax.jms.Message objects when Camel is sending a JMS message. The option will be converted to a <code>org.apache.camel.component.sjms.jms.MessageCreatedStrategy</code> type. Group: advanced- Specified by:
messageCreatedStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
messageCreatedStrategyin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
messageCreatedStrategy- the value to set- Returns:
- the dsl builder
-
recoveryInterval
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder recoveryInterval(long recoveryInterval)
Specifies the interval between recovery attempts, i.e. when a connection is being refreshed, in milliseconds. The default is 5000 ms, that is, 5 seconds. The option is a: <code>long</code> type. Default: 5000 Group: advanced- Specified by:
recoveryIntervalin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
recoveryIntervalin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
recoveryInterval- the value to set- Returns:
- the dsl builder
-
recoveryInterval
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder recoveryInterval(String recoveryInterval)
Specifies the interval between recovery attempts, i.e. when a connection is being refreshed, in milliseconds. The default is 5000 ms, that is, 5 seconds. The option will be converted to a <code>long</code> type. Default: 5000 Group: advanced- Specified by:
recoveryIntervalin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
recoveryIntervalin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
recoveryInterval- the value to set- Returns:
- the dsl builder
-
synchronous
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder synchronous(boolean synchronous)
Sets whether synchronous processing should be strictly used. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
synchronousin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
synchronousin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
synchronous- the value to set- Returns:
- the dsl builder
-
synchronous
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder synchronous(String synchronous)
Sets whether synchronous processing should be strictly used. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
synchronousin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
synchronousin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
synchronous- the value to set- Returns:
- the dsl builder
-
transferException
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder transferException(boolean transferException)
If enabled and you are using Request Reply messaging (InOut) and an Exchange failed on the consumer side, then the caused Exception will be send back in response as a javax.jms.ObjectMessage. If the client is Camel, the returned Exception is rethrown. This allows you to use Camel JMS as a bridge in your routing - for example, using persistent queues to enable robust routing. Notice that if you also have transferExchange enabled, this option takes precedence. The caught exception is required to be serializable. The original Exception on the consumer side can be wrapped in an outer exception such as org.apache.camel.RuntimeCamelException when returned to the producer. Use this with caution as the data is using Java Object serialization and requires the received to be able to deserialize the data at Class level, which forces a strong coupling between the producers and consumer!. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
transferExceptionin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
transferExceptionin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
transferException- the value to set- Returns:
- the dsl builder
-
transferException
default SjmsEndpointBuilderFactory.AdvancedSjmsEndpointBuilder transferException(String transferException)
If enabled and you are using Request Reply messaging (InOut) and an Exchange failed on the consumer side, then the caused Exception will be send back in response as a javax.jms.ObjectMessage. If the client is Camel, the returned Exception is rethrown. This allows you to use Camel JMS as a bridge in your routing - for example, using persistent queues to enable robust routing. Notice that if you also have transferExchange enabled, this option takes precedence. The caught exception is required to be serializable. The original Exception on the consumer side can be wrapped in an outer exception such as org.apache.camel.RuntimeCamelException when returned to the producer. Use this with caution as the data is using Java Object serialization and requires the received to be able to deserialize the data at Class level, which forces a strong coupling between the producers and consumer!. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
transferExceptionin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointConsumerBuilder- Specified by:
transferExceptionin interfaceSjmsEndpointBuilderFactory.AdvancedSjmsEndpointProducerBuilder- Parameters:
transferException- the value to set- Returns:
- the dsl builder
-
-