camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allan C." <allan...@gmail.com>
Subject Re: Java DSL: How to inject object endpoint?
Date Tue, 01 Nov 2016 04:24:56 GMT
Noted, thanks for the tips!

Regards,
Allan C.

On Tue, Nov 1, 2016 at 12:11 PM, Tomohisa Igarashi <tm.igarashi@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. <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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message