camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Minh Tran <darth.minhs...@gmail.com>
Subject Re: Java DSL: How to inject object endpoint?
Date Tue, 01 Nov 2016 04:04:05 GMT
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. <allancth@gmail.com> wrote:
> 
> P/S I am using RouteBuilder
> 
> Regards,
> Allan C.
> 
> On Tue, Nov 1, 2016 at 11:58 AM, Allan C. <allancth@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.
>> 


Mime
View raw message