camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Main class load XML file
Date Fri, 30 Nov 2012 07:41:42 GMT

Yes see this FAQ and the links it has, and you will find what you seek

On Thu, Nov 29, 2012 at 11:20 PM, Tyler Durvik <> wrote:
> I have always used maven in development and generated projects using
> the maven "archetype:generate" target.  I have performed those steps
> again on my current project but now I want to load the XML
> configuration file containing the Camel Context and route definitions
> from a Main java class.  Is there a tutorial on how to do this?
> So to explain better, I want a Java Main class that does the same as
> "mvn camel:run".
> Thank you.

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message