Direct VM

Direct VM

Scheme: direct-vm
Syntax: direct-vm:name
Description: The direct-vm component provides direct synchronous call to another endpoint from any CamelContext in the same JVM.
Deprecated:false
Async:true
Maven: org.apache.camel/camel-core/2.18.4

The direct-vm component provides direct, synchronous call to another endpoint from any CamelContext in the same JVM. This endpoint can be used to connect existing routes in the same JVM between different CamelContexts.

Name Kind Group Required Default Type Enum Description
name path common true java.lang.String Name of direct-vm endpoint
bridgeErrorHandler parameter consumer boolean Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.

By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored.

exceptionHandler parameter consumer (advanced) org.apache.camel.spi.ExceptionHandler To let the consumer use a custom ExceptionHandler. + Notice if the option bridgeErrorHandler is enabled then this options is not in use. + By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored.
exchangePattern parameter consumer (advanced) org.apache.camel.ExchangePattern InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange.
block parameter producer boolean If sending a message to a direct endpoint which has no active consumer, then we can tell the producer to block and wait for the consumer to become active.
failIfNoConsumers parameter producer boolean Whether the producer should fail by throwing an exception, when sending to a Direct-VM endpoint with no active consumers.
timeout parameter producer 30000 long The timeout value to use if block is enabled.
headerFilterStrategy parameter producer (advanced) org.apache.camel.spi.HeaderFilterStrategy Sets a {@link HeaderFilterStrategy} that will only be applied on producer endpoints (on both directions: request and response).

Default value: none.

propagateProperties parameter advanced false java.lang.Boolean Whether to propagate or not properties from the producer side to the consumer side, and viceversa.

Default value: true.

synchronous parameter advanced false boolean Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). @param synchronous true to enforce synchronous processing

direct-vm consumer

The direct consumer.