camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7778) BindableRegistry interface with JndiRegistry and ApplicationContextAware implementations
Date Sat, 21 Mar 2015 10:06:38 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-7778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14372636#comment-14372636
] 

Claus Ibsen commented on CAMEL-7778:
------------------------------------

Okay so this ticket is really about having an endpoint register in java, which allows you
to define endpoints and bind them to an id.

So you can do something like in spring with <endpoint id="xxx" uri="xxx"/>



> BindableRegistry interface with JndiRegistry and ApplicationContextAware implementations
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-7778
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7778
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 2.12.0
>            Reporter: Serge Smertin
>
> Generally, it's more efficient/loosely coupled to send to endpoint aliases, so we might
change implementation of endpoint without changing the code:
> {code}
>     // in cases of dynamic routing
>     producer.asyncSend("specificMessageChannel", new Processor() {
>         ...
>     });
> {code}
> It's possible to do it through Spring DSL, but impossible to register endpoints from
route builder if we use spring. Also it is easier to configure number of consumers and etc
for endpoints. 
> {code}
> <endpoint id="specificMessageChannel" uri="seda:internalProcessing?concurrentConsumers=8"
/>
> {code}
> JndiRegistry has "bind" method and ApplicationContextAwareRegistry does not have it.
> Another use-case for that is camel-test component



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message