From the link I sent before:
"Camel 2.0: Timeout in millis a seda PRODUCER will at most waiting for
an async task to complete. See waitForTaskToComplete and Async for more
details. In Camel 2.2 you can now disable timeout by using 0 or a
negative value."
Emphasis on *producer*. The "from" in
This works
Future future = camel.asyncRequestBody("seda:test?timeout=6",
"DO", String.class);
Curiously, setting timeout on the route definition seems to be ignored:
from("seda:test?timeout=6")... does not change the default 30 sec
timeout.
Dragisa
On 2/3/12 6:04 PM, "Hadrian Zbarcea"
Did you try: "seda:foo?timeout=6" or whatever else you prefer (in
millis)? The default timeout is 30 sec [1].
Hadrian
[1] http://camel.apache.org/seda.html
On 02/03/2012 08:25 PM, Krsmanovic, Dragisa wrote:
Example:
Future future = camel.asyncRequestBody("seda:test", "DO",
String.clas
Example:
Future future = camel.asyncRequestBody("seda:test", "DO", String.class);
String response = future.get(1, TimeUnit.MINUTES);
If message takes a long time to complete, future.get() always times out after
30 sec regardless of what I set in future.get(..)
Seeing error:
Caused by: org.apach