camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lleclerc <>
Subject Re: OSGI dependencies with camel
Date Wed, 28 Nov 2012 14:57:27 GMT
In the end, we use @Inject to be able to access the ComponentResolver
available from the dependency and then resolve the component and add it to
the camelContext.

@Inject .multiple()
Iterable<ComponentResolver> resolvers;

Component comp = resolver.resolveComponent(CAMEL_HTTP4, camelContext);
camelContext.addComponent(CAMEL_HTTP4, comp);

The dependency is added through resolve, and found using the string "http4"
and is not directly linked to any Class of the camel-http4 jar.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message