camel-users mailing list archives

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

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

"Hello, 
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
object

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

A+JYT




--
View this message in context: http://camel.465427.n5.nabble.com/How-to-register-a-datasource-on-configure-method-or-constructor-of-a-RoutBuilder-tp5595165p5711798.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message