Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.

camel-eclipse

Available as of Camel 2.3

The camel-eclipse is a component which allows you to run Camel with Eclipse RCP. This component is needed due Eclipse classloading challenges. The component is a specialized Camel Pluggable Class Resolvers to remedy this.

The resolver is provided in the class org.apache.camel.component.eclipse.EclipsePackageScanClassResolver in the camel-eclipse jar file.

Using with Java DSL

You need to configure the resolver on the CamelContext which is done like this:

  PackageScanClassResolver eclipseResolver = new EclipsePackageScanClassResolver();

  CamelContext context = new DefaultCamelContext();
  context.setPackageScanClassResolver(eclipseResolver);

Using with Spring XML

When using Spring XML its just a matter of defining a spring bean with the Eclipse class resolver as shown:

   <bean id="eclipseResolver" class="org.apache.camel.component.eclipse.EclipsePackageScanClassResolver"/>

  <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
    <route>
      <from uri="seda:start"/>
      <to uri="mock:result"/>
    </route>
  </camelContext>

Dependencies

Maven users will need to add the following dependency to their pom.xml for this component:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-eclipse</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>
© 2004-2015 The Apache Software Foundation.
Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram