Hello,

I'm using Camel 2.11.0 under Karaf 2.3.1. I'm creating the camel
context via blueprint and Ican't figure out how to prevent it from
shutting down instantly after starting.

I've pasted some trimmed log messages. You can see that the context
shuts down right after startup without throwing Exception. I believe
that I should put something that the Camel will wait for (like
TimeUnit.SECONDS.sleep() ) until it calls stop() but I don't know
where.

2013-05-23 11:20:12,976 | INFO  | BlueprintCamelContext            |
Apache Camel 2.11.0 (CamelContext: process-context) started in 0.234
seconds
2013-05-23 11:20:12,984 | INFO  | BlueprintCamelContext            |
Apache Camel 2.11.0 (CamelContext: process-context) is shutting down
2013-05-23 11:20:12,987 | INFO  | DefaultShutdownStrategy          |
Starting to graceful shutdown 4 routes (timeout 300 seconds)
2013-05-23 11:20:13,980 | INFO  | DefaultShutdownStrategy          |
Route: process-format-error-invoices shutdown complete, was consuming
from: Endpoint[activemq://temp.format.error]
2013-05-23 11:20:13,988 | INFO  | DefaultShutdownStrategy          |
Route: process-good-invoices shutdown complete, was consuming from:
Endpoint[activemq://temp.format.ok]
2013-05-23 11:20:13,995 | INFO  | DefaultShutdownStrategy          |
Route: validate-incoming-invoices shutdown complete, was consuming
from: Endpoint[activemq://incoming]
2013-05-23 11:20:13,997 | INFO  | DefaultShutdownStrategy          |
Route: fetch-local-data shutdown complete, was consuming from:
Endpoint[file:///home/vftp?antInclude=**%2Fin%2F*.xml&idempotent=true&recursive=true]
2013-05-23 11:20:14,000 | INFO  | DefaultShutdownStrategy          |
Graceful shutdown of 4 routes completed in 1 seconds

Cheers,

--
Ioan Eugen Stan
0720 898 747

Reply via email to