Part of the reason I asked that question is that if you are using blueprint
you start your route builder in the context in the XML file.  Spring is
similar.  CDI requires the annotation help and I haven't used it before
2.17 so I'm not sure how ready for primetime it was before.


<bean id="myRoute" class="com.MyRoutes" />


<camelContext xmlns="http://camel.apache.org/schema/blueprint";>

<routeBuilder ref="myRoute" />

On Wed, Aug 10, 2016 at 9:13 AM, Rajith Muditha Attapattu <
rajit...@gmail.com> wrote:

> Thanks guys for the information.
> I'm using 2.15 ...as thats the version bundled with the Fuse 6.2.1 release.
>
> On Tue, Aug 9, 2016 at 4:18 AM, Antonin Stefanutti <anto...@stefanutti.fr>
> wrote:
>
> > Hi,
> >
> > Camel CDI is capable of managing multiple Camel contexts within the same
> > JVM / same CDI container. You can find more information in
> > http://camel.apache.org/cdi.html#CDI-MultipleCamelcontexts. It documents
> > how to declare these contexts and how to bind RouteBuilder to them.
> > Generally, you would use the provided @ContextName qualifier to do the
> > binding though you can use your own qualifiers if needed.
> >
> > As Brad mentioned, you may want to precise / check the Camel version
> > you’re using. Indeed, multiple Camel context support has been greatly
> > improved since Camel 2.17.0. You may be able to use it before that but
> not
> > all the typical use cases will work.
> >
> > Let us know if that helps.
> >
> > Antonin
> >
> > > On 08 Aug 2016, at 20:48, Brad Johnson <brad.john...@mediadriver.com>
> > wrote:
> > >
> > > Which framework and version of Camel are you using?
> > >
> > > On Mon, Aug 8, 2016 at 1:47 PM, Rajith Muditha Attapattu <
> > rajit...@gmail.com
> > >> wrote:
> > >
> > >> Hey All,
> > >>
> > >> Within the same JVM, there will be two camel contexts.
> > >> How do I mark a particular RouteBuilder to say it belongs to Context1
> vs
> > >> Context2 ?
> > >>
> > >> Is this even possible ?
> > >>
> > >> Regards,
> > >>
> > >> Rajith Muditha Attapattu <http://rajith.2rlabs.com/>
> > >>
> >
> >
>
>
> --
> Regards,
>
> Rajith Muditha Attapattu <http://rajith.2rlabs.com/>
>

Reply via email to