Noted, thanks for the tips! Regards, Allan C.
On Tue, Nov 1, 2016 at 12:11 PM, Tomohisa Igarashi <tm.igara...@gmail.com> wrote: > Or migrate to @Named("someInstance") CDI bean with using camel-cdi? > http://camel.apache.org/cdi.html > > > On 11/01/2016 01:04 PM, Minh Tran wrote: > >> Hi >> >> It’s still the same syntax >> >> from("foo://bar?foobar=#someInstance”).to (…. >> >> You still declare the someInstance somewhere in your Spring context as >> you would have previously using xml DSL >> >> On 1 Nov 2016, at 3:01 PM, Allan C. <allan...@gmail.com> wrote: >>> >>> P/S I am using RouteBuilder >>> >>> Regards, >>> Allan C. >>> >>> On Tue, Nov 1, 2016 at 11:58 AM, Allan C. <allan...@gmail.com> wrote: >>> >>> Hi, >>>> >>>> I've never used Java DSL to define routes. Can anyone share or provide >>>> some hints on how to perform the same thing below in Java code? i.e. >>>> inject >>>> someInstance into the endpoint. >>>> >>>> <from uri="foo://bar?foobar=#someInstance" /> >>>> >>>> Regards, >>>> Allan C. >>>> >>>> >>