camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Achim Nierbeck <bcanh...@googlemail.com>
Subject Re: prevent CamelContext from shutting down in blueprint
Date Thu, 23 May 2013 08:42:48 GMT
Maybe turning on debug level in the logging will give you a better reason
why the camel context is destroyed right after startup.
This usually happens if you have something wrong in your route ...
regards, Achim


2013/5/23 Ioan Eugen Stan <stan.ieugen@gmail.com>

> 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
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message