camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen" <claus.ib...@gmail.com>
Subject Re: Registry/Repository support in CAMEL
Date Thu, 20 Nov 2008 17:26:59 GMT
Hi

Camel supports defining endpoints so you can ref then using the id
instead of the actual uri.

<endpoint id="foo" uri="jms:qeue:a?disableReply=true"/>

And then you can ref the endpoint just as foo
from("foo").to("log:hello");


/Claus Ibsen
Apache Camel Committer
Blog: http://davsclaus.blogspot.com/



On Thu, Nov 20, 2008 at 1:32 PM, S. Ali Tokmen
<savas-ali.tokmen@bull.net> wrote:
> Hello
>
> Time for me to be more elaborate, then... :)
>
> When we're doing a Repository service, our aim is to link logical URLs to
> technical URLs.
>
> For example:
>
>   * The logical URL reference:sampleTopic has as technical
>     correspondent jms:topic:sampleTopic?disableReplyTo=true
>   * Therefore, if the user writes reference:sampleTopic in its
>     camel-context.xml file, CAMEL should act exactly as if
>     jms:topic:sampleTopic?disableReplyTo=true was written
>
> What I've seen in CAMEL is that JNDI on JMS also does a similar job:
>
>   * The default JMS implementation requires the JMS worker names to be
>     written (for example, jms:queue:#0.0.1023)
>   * To replace that with a JNDI lookup, we need to set the
>     destinationResolver property of the JmsComponent bean with a
>     JndiDestinationResolver bean (in camel-context.xml)
>   * Once that is done, writing jms:queue:sampleQueue becomes
>     equivalent to writing jms:queue:#0.0.1023
>
> And that's why I'm mentioning the destinationResolvers...
>
> Do you think I'm going in the wrong direction?
>
> Cheers
>
> S. Ali Tokmen
> savas-ali.tokmen@bull.net
>
> Office: +33 4 76 29 76 19
> GSM:    +33 66 43 00 555
>
> Bull, Architect of an Open World TM
> http://www.bull.com
>
>
>
> Claus Ibsen a écrit :
>>
>> On Thu, Nov 20, 2008 at 11:46 AM, S. Ali Tokmen
>> <savas-ali.tokmen@bull.net> wrote:
>>
>>>
>>> Hello
>>>
>>> After some tests, I have the impression that the real property to look
>>> after
>>> is the "destinationResolver" property. Do you think that's expected?
>>>
>>
>> Could you elaborate what you mean, eg. write some more?
>> Which destinationResolver. I can not find destinationResolver in Camel.
>>
>>
>>
>>
>

Mime
View raw message