You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/01/05 15:31:15 UTC

[jira] Updated: (CAMEL-2335) The in Spring XML should support using serviceRef to lookup a reference for an endpoint

     [ https://issues.apache.org/activemq/browse/CAMEL-2335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-2335:
-------------------------------

          Description: 
Even though people can use the *ref* component, but that is hardly technique.

So you can do using *serviceRef* to refer to the endpoint
{code:xml}
        <!-- create a proxy that will route to the direct:start endpoint when invoked -->
        <proxy id="myProxySender"
               serviceInterface="org.apache.camel.spring.config.MyProxySender"
               serviceRef="cool"/>

        <!-- define the endpoint we want to proxy -->
        <endpoint id="cool" uri="direct:start"/>
{code}

  was:Even though people can use the *ref* component, but that is hardly technique.

    Affects Version/s: 2.1.0
        Fix Version/s: 2.2.0
             Assignee: Claus Ibsen

> The <proxy> in Spring XML should support using serviceRef to lookup a reference for an endpoint
> -----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2335
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2335
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 2.1.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.2.0
>
>
> Even though people can use the *ref* component, but that is hardly technique.
> So you can do using *serviceRef* to refer to the endpoint
> {code:xml}
>         <!-- create a proxy that will route to the direct:start endpoint when invoked -->
>         <proxy id="myProxySender"
>                serviceInterface="org.apache.camel.spring.config.MyProxySender"
>                serviceRef="cool"/>
>         <!-- define the endpoint we want to proxy -->
>         <endpoint id="cool" uri="direct:start"/>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.