dermoritz
dermoritz

Reputation: 13038

Difference between using camel main and operating directly on context object

I am creating my first camel standalone application. I saw some examples for this. There seem to be two flavors:

What are the differences between both ways? In my case i create the Context in a separate class and because there is no method to set the context into main i have to use context directly. but i want to know what main delivers in addition, probably i have to implement some additional stuff?!

Upvotes: 0

Views: 1306

Answers (1)

Claus Ibsen
Claus Ibsen

Reputation: 55540

The difference is one is to make it easier to bootup a Camel app in a JVM and have it keep running etc. And the other is to start a context using its start method.

You can find more details here

And then the javadoc of the CamelContext and its start method

Upvotes: 2

Related Questions