Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URI format

Code Block
seda:someName[?options]

Where someName can be any string to uniquely identify the endpoint within the current CamelContext.

Info
titleSame URI must be used for both producer and consumer

The excact same Seda endpoint URI must be used for both the producer and consumer. Otherwise Camel will create a 2nd Seda endpoint even thought that someName part of the URI is identical. For example:

Code Block

from("direct:foo").to("seda:bar?concurrentConsumers=5");

from("seda:bar?concurrentConsumers=5").to("file://output");

Notice that we have to use the full URI including options in both the producer and consumer.

Options

Name

Default

Description

size

1000

The maximum size of the SEDA queue

concurrentConsumers

1

Camel 1.6.1/2.0: Number of concurrent threads processing exchanges.

waitForTaskToComplete

IfReplyExpected

Camel 2.0: Option to specify if the caller should wait for the async task to be complete or not before continuing. The following 3 options is supported: Always, Newer or IfReplyExpected. The first two options is self explained. The last will only wait if the message is Request Reply based. The default option is IfReplyExpected. See more information about Async messaging.

...