camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (CAMEL-1205) @EndpointInject can not lookup bean if endpoint is defined directly as a consumer (from)
Date Tue, 10 Feb 2009 14:09:59 GMT

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

Claus Ibsen reassigned CAMEL-1205:
----------------------------------

    Assignee: Claus Ibsen

> @EndpointInject can not lookup bean if endpoint is defined directly as a consumer (from)
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1205
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1205
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-spring
>    Affects Versions: 1.6.0, 2.0.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>
> I was messing with camel-spring and routes using spring DSL
> I had this part of unit test code
> {code:java}
>     @EndpointInject(name = "myFileEndpoint")
>     protected Endpoint inputFile;
> {code}
> To lookup an endppoint with the given name *myFileEndpoint*
> But if I define it directly then it cannot be found
> {code:xml}
>         <route>
>             <from id="myFileEndpoint" uri="file://target/antpathmatcher?consumer.recursive=true&amp;filter=#myFilter"/>
>             <to uri="mock:result"/>
>         </route>
> {code}
> So I have to define it as a loose endpoint as:
> {code:xml}
>         <endpoint id="myFileEndpoint" uri="file://target/antpathmatcher?consumer.recursive=true&amp;filter=#myFilter"/>
>         <route>
>             <from ref="myFileEndpoint"/>
>             <to uri="mock:result"/>
>         </route>
> {code}

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


Mime
View raw message