...
Grape component allows you to fetch, load and manage additional jars when CamelContext
is running. In practice with Camel Grape component you can add new components, data formats and beans to your CamelContext
without the restart of the router. Grape component supports only producer endpoints.
Setting up class loader
Grape requires using Groovy class loader with CamelContext. You can enable Groovy class loading on the existing Camel Context using the GrapeComponent#grapeCamelContext()
method:
...
Code Block | ||
---|---|---|
| ||
camelContext.setApplicationContextClassLoader(new GroovyClassLoader(myClassLoader)); |
URI format
Grape component supports only producer endpoints.
Code Block |
---|
grape:defaultMavenCoordinates[?options] |
...