You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Christian Müller <ch...@gmail.com> on 2012/07/01 23:48:24 UTC

Re: How to register a datasource, on configure() method or constructor of a RoutBuilder ?

Could you solve your problem?
If not, feel free to raise a JIRA (and attach a test if possible) so we can
work on this.

Best,
Christian

On Fri, May 18, 2012 at 11:22 AM, sekaijin <je...@sap.aphp.fr>wrote:

> 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.
>