Commits

Marcin Grzejszczak committed ea204b0

Refactoring - removed unnecesarry duplicate of running Camel context

Comments (0)

Files changed (1)

Camel and Spring/src/main/pl/grzejszczak/marcin/camel/CamelRouter.java

 package pl.grzejszczak.marcin.camel;
 
-import org.apache.camel.CamelContext;
-import org.apache.camel.impl.DefaultCamelContext;
 import org.apache.camel.spring.Main;
 
 public class CamelRouter {
 		Main main = new Main();
 		main.setApplicationContextUri("/camel/camelContext.xml");
 		main.run(args);
-		CamelContext context = new DefaultCamelContext();
-		context.start();
-		Thread.sleep(1000);
-		context.stop();
 	}
 
 }