title: Allow Camel context to run forever
body: <p>I am using camel-spring jar for springCamelContext. When I start the camel context , it run for 5 minutes (Default time). I can make my thread sleep for some specific time i.e.</p>
  
  <pre><code>try {
              camelContext.start();
              Thread.sleep(50 * 60 * 1000);
              camelContext.stop();
          } catch (Exception e) {
              e.printStackTrace();
          }
  </code></pre>
  
  <p>BUT I want is my camelContext to run FOREVER because this application is going to be deployed and It will be listening for messages from KAFKA server. I know there is a class  </p>
  
  <pre><code>org.apache.camel.spring.Main
  </code></pre>
  
  <p>But I don't know how to configure it with springCamelContext or not sure if there any other way. Thanks</p>
  
  <p>Update : Even If I remove camelContext.stop() , context is stopped after sometime and I get following logs :</p>
  
  <pre><code>[Thread-1] INFO org.apache.camel.spring.SpringCamelContext - Apache Camel 2.17.2 (CamelContext: camel-1) is shutting down
      [Thread-1] INFO org.apache.camel.impl.DefaultShutdownStrategy - Starting to graceful shutdown 1 routes (timeout 300 seconds)
      [Camel (camel-1) thread #1 - ShutdownTask] INFO org.apache.camel.component.kafka.KafkaConsumer - Stopping Kafka consumer
      [Camel (camel-1) thread #1 - ShutdownTask] INFO org.apache.camel.impl.DefaultShutdownStrategy - Route: route1 shutdown complete, was consuming from: Endpoint[kafka://localhost:9092?groupId=group0&amp;serializerClass=org.springframework.integration.kafka.serializer.avro.AvroSerializer&amp;topic=my-topic]
      [Thread-1] INFO org.apache.camel.impl.DefaultShutdownStrategy - Graceful shutdown of 1 routes completed in 0 seconds
      [Thread-1] INFO org.apache.camel.spring.SpringCamelContext - Apache Camel 2.17.2 (CamelContext: camel-1) uptime 4 minutes
      [Thread-1] INFO org.apache.camel.spring.SpringCamelContext - Apache Camel 2.17.2 (CamelContext: camel-1) is shutdown in 0.022 seconds 
  </code></pre>