Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Want to run your jar file and supply a list of packages / configuration classes and just see it run with Camel? Try Main from org.apache.camel.spring which even supports command-line flags.

...

To run the example we use the Camel Maven Plugin. For example from the source or binary distribution the following should work

...

...

You need to add camel-spring-javaconfig dependency into pom.xml and also set the configure class or base package in the camel plugin configuration.

...

...

Here is the configuration for camel plugin.

...

What this does is boot up the Spring ApplicationContext defined in the file MyRouteConfig class on the classpath. This is a regular Java file which has the Spring JavaConfig annotation to configure a CamelContext.

...

...

In the method of setupCamelContext(CamelContext camelContext), we setup the JMS component's connection factory and register the component into the camelcontext. You can override this method if you want to setup the another connection factory or start up a JMS broker here.

...