@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.5.1, 2.0.0
Reporter: 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&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&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.