camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sekaijin <>
Subject Re: How to register a datasource, on configure() method or constructor of a RoutBuilder ?
Date Fri, 18 May 2012 09:22:41 GMT

Christian Mueller wrote
> It depends on your runtime environment, which Registry is used:
> - org.apache.camel.spring.spi.ApplicationContextRegistry
> - org.apache.camel.blueprint.BlueprintContainerRegistry
> - org.apache.camel.impl.CompositeRegistry
> - org.apache.camel.impl.JndiRegistry
> - org.apache.camel.core.osgi.OsgiServiceRegistry
> - org.apache.camel.impl.PropertyPlaceholderDelegateRegistry
> - org.apache.camel.impl.SimpleRegistry
> Best,
> Christian
> ...

In my first post

I can not run camel-jdbc in java. 

I defines a route with *camel-blueprint* via routebuilder in java""

the problem is how i can get the registry in java to bind an objet

blueprint automaticly creates the camel context and registry, and does not
allow access in java.

in route builder the camel context does not allow acces to the registry. it
allow access to a proxy to the registry that does not allow to bind an

if I do as you said for junit,
I do not have the expected behavior. namely
when the bundle starts he has no knowledge of the database.
It queries a service that provided the datasource to use


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

View raw message